diff --git a/open-isle-cli/src/assets/global.css b/open-isle-cli/src/assets/global.css index ec4d6e89f..1ccaf6f8a 100644 --- a/open-isle-cli/src/assets/global.css +++ b/open-isle-cli/src/assets/global.css @@ -43,17 +43,8 @@ body { /************************* * Vditor 自定义皮肤覆写 *************************/ -/* - 思路: - 1. 用 CSS 变量快速改大色块; - 2. 再用选择器去掉边框 / 阴影。 - 注意顺序:一定写在官方 index.css 之后才能生效。 -*/ - .comment-editor-container .vditor { /* 去掉整体背景与边框,让它融入父容器 */ - --panel-background-color: transparent; - --border-color: transparent; --textarea-background-color: transparent; border: none !important; box-shadow: none !important; @@ -65,31 +56,3 @@ body { border: none !important; box-shadow: none !important; } - -/* 编辑区(wysiwyg / ir / sv)背景透明 */ -.comment-editor-container .vditor-content, -.comment-editor-container .vditor-wysiwyg, -.comment-editor-container .vditor-ir, -.comment-editor-container .vditor-textarea { - background: transparent !important; -} -.post-editor-container .vditor { - --panel-background-color: transparent; - --border-color: transparent; - --textarea-background-color: transparent; - border: none !important; - box-shadow: none !important; -} - -.post-editor-container .vditor-toolbar { - background: transparent !important; - border: none !important; - box-shadow: none !important; -} - -.post-editor-container .vditor-content, -.post-editor-container .vditor-wysiwyg, -.post-editor-container .vditor-ir, -.post-editor-container .vditor-textarea { - background: transparent !important; -} diff --git a/open-isle-cli/src/components/Dropdown.vue b/open-isle-cli/src/components/Dropdown.vue index f44964017..6024739f4 100644 --- a/open-isle-cli/src/components/Dropdown.vue +++ b/open-isle-cli/src/components/Dropdown.vue @@ -4,11 +4,13 @@ - - - - - {{ label.name }} + + + + + + {{ label.name }} + , @@ -16,11 +18,13 @@ - - - - - {{ selectedLabels[0].name }} + + + + + + {{ selectedLabels[0].name }} + {{ placeholder }} @@ -35,7 +39,8 @@ - + @@ -198,6 +203,13 @@ export default { overflow-y: auto; } +.selected-label { + display: inline-flex; + align-items: center; + gap: 5px; + margin-right: 5px; +} + .dropdown-search { display: flex; align-items: center; diff --git a/open-isle-cli/src/views/HomePageView.vue b/open-isle-cli/src/views/HomePageView.vue index 150de9131..63ff84c30 100644 --- a/open-isle-cli/src/views/HomePageView.vue +++ b/open-isle-cli/src/views/HomePageView.vue @@ -289,6 +289,10 @@ export default { font-size: 20px; text-decoration: none; color: var(--text-color); + line-clamp: 1; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; } .article-item-title:hover { diff --git a/open-isle-cli/src/views/NewPostPageView.vue b/open-isle-cli/src/views/NewPostPageView.vue index c74c2a1c8..787901fcb 100644 --- a/open-isle-cli/src/views/NewPostPageView.vue +++ b/open-isle-cli/src/views/NewPostPageView.vue @@ -192,6 +192,7 @@ export default { padding-bottom: 20px; background-color: transparent; font-size: 42px; + width: 100%; font-weight: bold; } diff --git a/open-isle-cli/src/views/PostPageView.vue b/open-isle-cli/src/views/PostPageView.vue index fa8109a69..bdefbf1e8 100644 --- a/open-isle-cli/src/views/PostPageView.vue +++ b/open-isle-cli/src/views/PostPageView.vue @@ -21,7 +21,7 @@ - + @@ -408,6 +408,10 @@ export default { cursor: pointer; } +.author-info-container { + margin-top: 20px; +} + .scroller-range::-moz-range-track { width: 2px; height: 100%;