From f0555d69bb874cf74de356ccefeeba92ee66cdc5 Mon Sep 17 00:00:00 2001 From: BTMuli Date: Mon, 15 Sep 2025 18:13:56 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=B8=20=E5=A4=84=E7=90=86=E8=AF=9D?= =?UTF-8?q?=E9=A2=98desc=E6=BA=A2=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/common/PostTopic.vue | 61 ++++++++++++++++++++++------------ 1 file changed, 39 insertions(+), 22 deletions(-) diff --git a/src/pages/common/PostTopic.vue b/src/pages/common/PostTopic.vue index 4353953a..e794d1c0 100644 --- a/src/pages/common/PostTopic.vue +++ b/src/pages/common/PostTopic.vue @@ -4,8 +4,10 @@
- {{ topicInfo.topic.name }}({{ curTopic }}) - {{ topicInfo.topic.desc }} + {{ curTopic }}-{{ topicInfo.topic.name }} + + {{ topicInfo.topic.desc }} +
@@ -98,6 +100,7 @@ import VpOverlayUser from "@comp/viewPost/vp-overlay-user.vue"; import { usePageReachBottom } from "@hooks/reachBottom.js"; import postReq from "@req/postReq.js"; import topicReq from "@req/topicReq.js"; +import useAppStore from "@store/app.js"; import useBBSStore from "@store/bbs.js"; import { createPost } from "@utils/TGWindow.js"; import { storeToRefs } from "pinia"; @@ -112,6 +115,8 @@ const route = useRoute(); const router = useRouter(); const { isReachBottom } = usePageReachBottom(); +const { sidebar } = storeToRefs(useAppStore()); +const { gameList } = storeToRefs(useBBSStore()); const curGid = ref(0); const curSortType = ref<0 | 1 | 2>(0); @@ -124,7 +129,6 @@ const showUser = ref(false); const isReq = ref(false); const firstLoad = ref(false); -const { gameList } = storeToRefs(useBBSStore()); const postRaw = shallowRef({ isLast: false, lastId: "", total: 0 }); const topicInfo = shallowRef(); const posts = shallowRef>([]); @@ -288,37 +292,50 @@ function handleUserClick(user: TGApp.BBS.Post.User, gid: number): void { position: relative; display: flex; overflow: hidden; + max-width: 100%; align-items: center; justify-content: center; - padding-right: 4px; border-radius: 4px; + margin-right: 12px; margin-left: 12px; background: var(--box-bg-2); gap: 4px; img { - width: 64px; - height: 64px; + width: 50px; + height: 50px; + } +} + +.post-topic-info { + position: relative; + display: flex; + flex-direction: column; + align-items: flex-start; + justify-content: center; + + :first-child { + color: var(--common-text-title); + font-family: var(--font-title); + font-size: 18px; } - .post-topic-info { - position: relative; - display: flex; - flex-direction: column; - gap: 4px; + :last-child { + overflow: hidden; + box-sizing: border-box; + padding-right: 8px; + max-lines: 1; + text-overflow: ellipsis; + white-space: nowrap; + word-break: break-all; - :first-child { - color: var(--common-text-title); - font-family: var(--font-title); - font-size: 20px; + &.wide { + max-width: 580px; + transition: max-width 0.5s ease-in-out; } - :last-child { - overflow: hidden; - height: 24px; - max-lines: 1; - text-overflow: ellipsis; - word-break: break-all; + &.thin { + max-width: 380px; } } } @@ -350,8 +367,8 @@ function handleUserClick(user: TGApp.BBS.Post.User, gid: number): void { .post-topic-grid { display: grid; font-family: var(--font-title); + gap: 8px; grid-auto-rows: auto; - grid-gap: 8px; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }