diff --git a/open-isle-cli/src/assets/global.css b/open-isle-cli/src/assets/global.css index 4de4d67e5..783392985 100644 --- a/open-isle-cli/src/assets/global.css +++ b/open-isle-cli/src/assets/global.css @@ -93,16 +93,17 @@ body { } .info-content-text pre { - background-color: #f6f8fa; + background-color: var(--normal-background-color); padding: 8px 12px; border-radius: 4px; - line-height: 0.5; + line-height: 0.8; } .info-content-text code { - font-family: 'Courier New', monospace; + font-family: monospace; font-size: 13px; border-radius: 4px; + white-space: pre-wrap; } .info-content-text a { @@ -172,10 +173,6 @@ body { } @media (max-width: 768px) { - .info-content-text { - font-size: 14px; - } - .info-content-text h1 { font-size: 20px; } @@ -185,10 +182,10 @@ body { } .info-content-text p { - font-size: 12px; + font-size: 14px; } .info-content-text li { - font-size: 12px; + font-size: 14px; } } \ No newline at end of file diff --git a/open-isle-cli/src/components/BaseTimeline.vue b/open-isle-cli/src/components/BaseTimeline.vue index 94b41c9d3..847e55398 100644 --- a/open-isle-cli/src/components/BaseTimeline.vue +++ b/open-isle-cli/src/components/BaseTimeline.vue @@ -42,6 +42,8 @@ export default { } .timeline-icon { + position: sticky; + top: 0; width: 32px; height: 32px; border-radius: 50%; @@ -87,4 +89,17 @@ export default { .timeline-content { flex: 1; } + +@media (max-width: 768px) { + .timeline-item { + margin-bottom: 10px; + } + + .timeline-icon { + margin-right: 2px; + width: 30px; + height: 30px; + } +} + diff --git a/open-isle-cli/src/components/CommentEditor.vue b/open-isle-cli/src/components/CommentEditor.vue index f6ad9039a..3e25b94b1 100644 --- a/open-isle-cli/src/components/CommentEditor.vue +++ b/open-isle-cli/src/components/CommentEditor.vue @@ -95,7 +95,6 @@ export default { 'redo', '|', 'link', - 'image' ], toolbarConfig: { pin: true }, input(value) { diff --git a/open-isle-cli/src/components/CommentItem.vue b/open-isle-cli/src/components/CommentItem.vue index 325d655a1..7613d83ab 100644 --- a/open-isle-cli/src/components/CommentItem.vue +++ b/open-isle-cli/src/components/CommentItem.vue @@ -8,7 +8,7 @@ -->
-
+
{{ comment.userName }}
{{ comment.time }}
@@ -38,7 +38,6 @@
- {{ comment.reply.length }}条回复
@@ -240,6 +239,14 @@ export default CommentItem margin-right: 5px; } +.common-info-content-header { + display: flex; + flex-direction: row; + align-items: center; + justify-content: space-between; +} + + @keyframes highlight { from { background-color: yellow; diff --git a/open-isle-cli/src/components/MenuComponent.vue b/open-isle-cli/src/components/MenuComponent.vue index be30a7070..b194a9fab 100644 --- a/open-isle-cli/src/components/MenuComponent.vue +++ b/open-isle-cli/src/components/MenuComponent.vue @@ -227,6 +227,7 @@ export default { flex-direction: column; padding: 10px; overflow-y: auto; + scrollbar-width: none; } .menu-item-container { diff --git a/open-isle-cli/src/components/ReactionsGroup.vue b/open-isle-cli/src/components/ReactionsGroup.vue index c9e83bc51..3868ab4da 100644 --- a/open-isle-cli/src/components/ReactionsGroup.vue +++ b/open-isle-cli/src/components/ReactionsGroup.vue @@ -116,7 +116,7 @@ export default { } const scheduleHide = () => { clearTimeout(hideTimer) - hideTimer = setTimeout(() => { panelVisible.value = false }, 2000) + hideTimer = setTimeout(() => { panelVisible.value = false }, 0) } const cancelHide = () => { clearTimeout(hideTimer) @@ -276,4 +276,11 @@ export default { .reaction-option.selected { background-color: rgb(236, 236, 236); } + +@media (max-width: 768px) { + .make-reaction-item { + font-size: 16px; + padding: 3px 5px; + } +} diff --git a/open-isle-cli/src/views/PostPageView.vue b/open-isle-cli/src/views/PostPageView.vue index 6c1142216..ab9ddf166 100644 --- a/open-isle-cli/src/views/PostPageView.vue +++ b/open-isle-cli/src/views/PostPageView.vue @@ -40,10 +40,14 @@
avatar
+
+
{{ author.username }}
+
{{ postTime }}
+
-
+
{{ author.username }}
{{ postTime }}
@@ -63,9 +67,9 @@ :show-login-overlay="!loggedIn" />
- + @@ -115,6 +119,7 @@ import { getToken, authState } from '../utils/auth' import TimeManager from '../utils/time' import { hatch } from 'ldrs' import { useRouter } from 'vue-router' +import { isMobile } from '../utils/screen' hatch.register() export default { @@ -140,7 +145,7 @@ export default { const mainContainer = ref(null) const currentIndex = ref(1) const subscribed = ref(false) - + const lightboxVisible = ref(false) const lightboxIndex = ref(0) const lightboxImgs = ref([]) @@ -506,7 +511,8 @@ export default { lightboxVisible, lightboxIndex, lightboxImgs, - handleImageClick + handleImageClick, + isMobile } } } @@ -551,6 +557,11 @@ export default { opacity: 0.5; } +.user-avatar-container { + display: flex; + flex-direction: row; +} + .scroller-middle { margin: 10px 0; margin-left: 10px; @@ -740,7 +751,6 @@ export default { .info-content-header { display: flex; flex-direction: row; - gap: 10px; align-items: center; justify-content: space-between; } @@ -770,15 +780,6 @@ export default { margin-top: 60px; } -.reactions-container { - display: flex; - flex-direction: row; - gap: 10px; - align-items: center; - width: 100%; - justify-content: space-between; -} - .reactions-viewer { display: flex; flex-direction: row; @@ -836,5 +837,26 @@ export default { .post-page-scroller-container { display: none; } + + .info-content { + gap: 3px; + } + + .info-content-container { + flex-direction: column; + } + + .info-content-header { + width: calc(100% - 50px - 10px); + margin-left: 10px; + } + + .article-footer-container { + margin-top: 10px; + } + + .loading-container { + width: 100%; + } }