mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-16 05:47:09 +08:00
fix(editor): use inline-block style for inline comment (#13204)
#### PR Dependency Tree * **PR #13204** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Style** * Updated the display behavior of inline comments to improve their alignment and appearance within text. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -22,8 +22,11 @@ import { isEqual } from 'lodash-es';
|
|||||||
})
|
})
|
||||||
export class InlineComment extends WithDisposable(ShadowlessElement) {
|
export class InlineComment extends WithDisposable(ShadowlessElement) {
|
||||||
static override styles = css`
|
static override styles = css`
|
||||||
|
inline-comment {
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
|
||||||
inline-comment.unresolved {
|
inline-comment.unresolved {
|
||||||
display: inline-block;
|
|
||||||
background-color: ${unsafeCSSVarV2('block/comment/highlightDefault')};
|
background-color: ${unsafeCSSVarV2('block/comment/highlightDefault')};
|
||||||
border-bottom: 2px solid
|
border-bottom: 2px solid
|
||||||
${unsafeCSSVarV2('block/comment/highlightUnderline')};
|
${unsafeCSSVarV2('block/comment/highlightUnderline')};
|
||||||
|
|||||||
Reference in New Issue
Block a user