@@ -135,11 +135,6 @@ window.addEventListener('beforeunload', () => {
height: 100%;
}
-sub {
- display: grid;
- align-items: center;
-}
-
.image-preview {
position: fixed;
inset: 0;
@@ -59,8 +59,7 @@
font-size: smaller;
sub {
- vertical-align: sub;
- font-size: smaller;
+ vertical-align: baseline;
blockquote {
@@ -383,7 +383,6 @@ const getTypeClass = (type?: number) => {
font-weight: 500;
color: #6b7280;
text-align: center;
- line-height: 1.2;
.sidebar-item:hover .item-label,
@@ -10,7 +10,7 @@ const subscript: MarkSpec = {
getAttrs: value => value === 'sub' && null
},
],
- toDOM: () => ['sub', 0],
+ toDOM: () => ['sub', { style: 'vertical-align: baseline;' }, 0],
const superscript: MarkSpec = {
@@ -138,8 +138,7 @@ const text = computed<ShapeText>(() => {
right: 0;
display: flex;
flex-direction: column;
- padding: 10px;
+ padding: 5px;
word-break: break-word;
&.top {
@@ -236,8 +236,7 @@ const startEdit = () => {
pointer-events: none;
@@ -25,6 +25,9 @@
color: elementInfo.defaultColor,
fontFamily: elementInfo.defaultFontName,
writingMode: elementInfo.vertical ? 'vertical-rl' : 'horizontal-tb',
+ display: 'flex',
+ alignItems: 'center',
+ overflow: hidden,
}"
>
<ElementOutline