jack 1 month ago
parent
commit
a989ea353d

+ 1 - 1
src/components/Message.vue

@@ -127,7 +127,7 @@ defineExpose({
     width: 100%;
   }
   .description {
-    line-height: 1.5;
+    line-height: 1.15;
     color: $textColor;
   }
   .title + .description {

+ 3 - 3
src/hooks/useImport.ts

@@ -1321,7 +1321,7 @@ export default () => {
                 defaultColor: theme.value.fontColor,
                 content: convertFontSizePtToPx(el.content, ratio),
                 style: getStyle(convertFontSizePtToPx(el.content, ratio)),
-                lineHeight: 1.5,
+                lineHeight: 1.15,
                 outline: {
                   color: el.borderColor,
                   width: +(el.borderWidth * ratio).toFixed(2),
@@ -1382,7 +1382,7 @@ export default () => {
                   range: [[0, 0], [100, 100]],
                 }
               }
-
+/*
               // 如果 src 是 base64,触发上传
               if (el.src && typeof el.src === 'string' && el.src.startsWith('data:')) {
                 const uploadTask = (async () => {
@@ -1402,7 +1402,7 @@ export default () => {
                 })()
                 uploadTasks.push(uploadTask)
               }
-
+*/
               slide.elements.push(element)
             }
             else if (el.type === 'math') {

+ 1 - 1
src/plugins/directive/tooltip.scss

@@ -4,7 +4,7 @@
   border-radius: $borderRadius;
   padding: 8px;
   font-size: 12px;
-  line-height: 1.5;
+  line-height: 1.15;
 
   .tippy-arrow {
     width: 12px;

+ 1 - 1
src/utils/prosemirror/schema/nodes.ts

@@ -151,7 +151,7 @@ const paragraph: NodeSpec = {
   toDOM: (node: Node) => {
     const { align, indent, textIndent } = node.attrs
     let style = ''
-    if (align && align !== 'left') style += `text-align: ${align};`
+    if (align && align !== 'left') style += `text-align: ${align};text-align-last: ${align};`
     if (textIndent) style += `text-indent: ${textIndent}em;`
 
     const attr: Attr = { style }

+ 1 - 1
src/views/Editor/Remark/Editor.vue

@@ -210,7 +210,7 @@ onUnmounted(() => {
     font-size: 12px;
     overflow: auto;
     padding: 8px;
-    line-height: 1.5;
+    line-height: 1.15;
 
     & > p[data-placeholder]::before {
       content: attr(data-placeholder);

+ 1 - 1
src/views/Mobile/MobileEditor/SlideToolbar.vue

@@ -109,7 +109,7 @@ const handleInputMark = (e: Event) => {
   position: relative;
   flex: 1;
   border-bottom: 1px solid $borderColor;
-  line-height: 1.5;
+  line-height: 1.15;
 
   textarea {
     width: 100%;

+ 1 - 1
src/views/Screen/PresenterView.vue

@@ -298,7 +298,7 @@ const contextmenus = (): ContextmenuItem[] => {
   .remark-content {
     height: calc(100% - 60px);
     padding: 20px;
-    line-height: 1.5;
+    line-height: 1.15;
     @include overflow-overlay();
 
     &.empty {

+ 1 - 1
src/views/components/element/TableElement/EditableTable.vue

@@ -816,7 +816,7 @@ table {
 
   .cell-text {
     padding: 5px;
-    line-height: 1.5;
+    line-height: 1.15;
     user-select: none;
     cursor: text;
 

+ 1 - 1
src/views/components/element/TableElement/StaticTable.vue

@@ -137,7 +137,7 @@ table {
 
   .cell-text {
     padding: 5px;
-    line-height: 1.5;
+    line-height: 1.15;
   }
 }
 </style>

+ 1 - 1
src/views/components/element/TextElement/BaseTextElement.vue

@@ -77,7 +77,7 @@ const { shadowStyle } = useElementShadow(shadow)
 .element-content {
   position: relative;
   padding: 10px;
-  line-height: 1.5;
+  line-height: 1.15;
   word-break: break-word;
 
   .text {

+ 1 - 1
src/views/components/element/TextElement/index.vue

@@ -195,7 +195,7 @@ watch(isHandleElement, () => {
 .element-content {
   position: relative;
   padding: 10px;
-  line-height: 1.5;
+  line-height: 1.15;
   word-break: break-word;
   cursor: move;