From 42f2a0e057f9c9016d2d6d8f0d97ac956e3bdc8a Mon Sep 17 00:00:00 2001 From: tim Date: Mon, 14 Jul 2025 18:33:33 +0800 Subject: [PATCH] feat: login overlay ui fix --- .../src/components/CommentEditor.vue | 22 +++++++-------- open-isle-cli/src/components/LoginOverlay.vue | 28 +++++++++++++++++-- 2 files changed, 35 insertions(+), 15 deletions(-) diff --git a/open-isle-cli/src/components/CommentEditor.vue b/open-isle-cli/src/components/CommentEditor.vue index f9bbe8145..5def6d795 100644 --- a/open-isle-cli/src/components/CommentEditor.vue +++ b/open-isle-cli/src/components/CommentEditor.vue @@ -2,11 +2,7 @@
-
+
@@ -83,13 +79,10 @@ export default { 'image' ], toolbarConfig: { pin: true }, - input(value) { - text.value = value - } - }) - if (props.disabled || props.loading) { - vditorInstance.value.disabled() - } + input(value) { + text.value = value + } + }) }) watch( @@ -127,12 +120,14 @@ export default { margin-bottom: 50px; border: 1px solid #e2e2e2; } + .comment-bottom-container { display: flex; flex-direction: row; justify-content: flex-end; padding: 10px; } + .comment-submit { background-color: var(--primary-color); color: #fff; @@ -141,14 +136,17 @@ export default { font-size: 14px; cursor: pointer; } + .comment-submit.disabled { background-color: var(--primary-color-disabled); opacity: 0.5; cursor: not-allowed; } + .comment-submit.disabled:hover { background-color: var(--primary-color-disabled); } + .comment-submit:hover { background-color: var(--primary-color-hover); } diff --git a/open-isle-cli/src/components/LoginOverlay.vue b/open-isle-cli/src/components/LoginOverlay.vue index 9a9f2d20e..ae89581a8 100644 --- a/open-isle-cli/src/components/LoginOverlay.vue +++ b/open-isle-cli/src/components/LoginOverlay.vue @@ -1,8 +1,13 @@ @@ -28,12 +33,29 @@ export default { left: 0; right: 0; bottom: 0; - background: rgba(255, 255, 255, 0.7); display: flex; align-items: center; justify-content: center; text-align: center; - cursor: pointer; z-index: 15; } + +.login-overlay-icon { + margin-right: 10px; +} + +.login-overlay-button { + padding: 4px 8px; + border-radius: 5px; + background-color: var(--primary-color); + color: white; + cursor: pointer; + margin-left: 10px; + cursor: pointer; +} + +.login-overlay-button:hover { + background-color: var(--primary-color-hover); +} +