diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f003d5708..599d56fa0 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -53,8 +53,8 @@ cd OpenIsle --profile dev up -d ``` 该命令会创建名为 `frontend_dev` 的容器并运行 `npm run dev`,浏览器访问 http://127.0.0.1:3000 即可查看页面。 - - 修改代码后,可以强制重新创建所有容器,执行: + 修改前端代码,页面会热更新。 + 如果修改后端代码,可以重启后端容器, 或是环境变量中指向IDEA,采用IDEA编译运行也可以哦。 ```shell docker compose \ diff --git a/frontend_nuxt/assets/global.css b/frontend_nuxt/assets/global.css index 42d4118be..c9d31fbc0 100644 --- a/frontend_nuxt/assets/global.css +++ b/frontend_nuxt/assets/global.css @@ -3,7 +3,7 @@ --primary-color: rgb(10, 110, 120); --primary-color-disabled: rgba(93, 152, 156, 0.5); --secondary-color: rgb(255, 255, 255); - --secondary-color-hover: rgba(10, 111, 120, 0.184); + --secondary-color-hover: rgba(10, 111, 120, 0.079); --new-post-icon-color: rgba(10, 111, 120, 0.598); --header-height: 60px; --header-background-color: white; @@ -54,6 +54,7 @@ --header-border-color: #555; --primary-color: rgb(17, 182, 197); --primary-color-hover: rgb(13, 137, 151); + --secondary-color-hover: rgba(17, 182, 197, 0.238); --new-post-icon-color: rgba(10, 111, 120, 0.598); --header-text-color: white; --app-menu-background-color: #333; @@ -179,7 +180,7 @@ body { .info-content-text pre .line-numbers { counter-reset: line-number 0; - white-space: nowrap; /* 禁止数字换行 */ + white-space: nowrap; /* 禁止数字换行 */ font-variant-numeric: tabular-nums; /* 数字等宽 */ /* width: 2em; */ font-size: 13px; @@ -344,7 +345,7 @@ body { .info-content-text pre { line-height: 1.5; } - + /*处理iframe视频标签*/ .info-content-text iframe { width: 100%; diff --git a/frontend_nuxt/components/BaseUserAvatar.vue b/frontend_nuxt/components/BaseUserAvatar.vue index 6e0b62ab5..8d4443250 100644 --- a/frontend_nuxt/components/BaseUserAvatar.vue +++ b/frontend_nuxt/components/BaseUserAvatar.vue @@ -109,7 +109,7 @@ function onError() { } .base-user-avatar:hover { - box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1); + box-shadow: 0 4px 24px rgba(251, 138, 138, 0.1); transform: scale(1.05); } diff --git a/frontend_nuxt/components/CommentItem.vue b/frontend_nuxt/components/CommentItem.vue index 03a610df8..34a7e703d 100644 --- a/frontend_nuxt/components/CommentItem.vue +++ b/frontend_nuxt/components/CommentItem.vue @@ -488,6 +488,16 @@ const handleContentClick = (e) => { font-weight: bold; } +.article-footer-container { + display: flex; + flex-direction: row; + justify-content: space-between; + gap: 10px; + margin-top: 0px; + flex-wrap: wrap; + margin-bottom: 0px; +} + .medal-name { font-size: 12px; margin-left: 1px; diff --git a/frontend_nuxt/components/DonateGroup.vue b/frontend_nuxt/components/DonateGroup.vue index 00543f72c..9ea90f140 100644 --- a/frontend_nuxt/components/DonateGroup.vue +++ b/frontend_nuxt/components/DonateGroup.vue @@ -1,43 +1,49 @@ diff --git a/frontend_nuxt/components/ReactionsGroup.vue b/frontend_nuxt/components/ReactionsGroup.vue index e78a99049..7d4aaff80 100644 --- a/frontend_nuxt/components/ReactionsGroup.vue +++ b/frontend_nuxt/components/ReactionsGroup.vue @@ -18,9 +18,11 @@
{{ counts[r.type] }}
-
- -
+ +
+ +
+