From 0abe021640508abbf5652c57b9551335000e24f4 Mon Sep 17 00:00:00 2001 From: かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com> Date: Thu, 6 Nov 2025 09:31:55 +0900 Subject: fix(frontend): PageHeaderのタイトルがはみ出る問題を修正 (#16744) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(frontend): PageHeaderのタイトルがはみ出る問題を修正 * Update Changelog * fix: remove duplicated scoped class to avoid confusion --- .../src/components/global/MkPageHeader.vue | 37 +++++++--------------- 1 file changed, 12 insertions(+), 25 deletions(-) (limited to 'packages/frontend/src') diff --git a/packages/frontend/src/components/global/MkPageHeader.vue b/packages/frontend/src/components/global/MkPageHeader.vue index c4adf440cb..2f6dfed221 100644 --- a/packages/frontend/src/components/global/MkPageHeader.vue +++ b/packages/frontend/src/components/global/MkPageHeader.vue @@ -9,7 +9,7 @@ SPDX-License-Identifier: AGPL-3.0-only
-
+
-
+
@@ -155,8 +155,10 @@ onUnmounted(() => { .upper { --height: 50px; + --margin: var(--MI-margin); display: flex; - gap: var(--MI-margin); + gap: var(--margin); + align-items: center; height: var(--height); .tabs:first-child { @@ -169,6 +171,7 @@ onUnmounted(() => { &.thin { --height: 40px; + --margin: 8px; > .buttons { > .button { @@ -179,12 +182,8 @@ onUnmounted(() => { &.slim { text-align: center; - gap: 0; - .tabs:first-child { - margin-left: 0; - } - > .titleContainer { + .titleContainer { margin: 0 auto; max-width: 100%; } @@ -197,7 +196,7 @@ onUnmounted(() => { } .buttons { - --margin: 8px; + flex-shrink: 0; display: flex; align-items: center; min-width: var(--height); @@ -207,16 +206,6 @@ onUnmounted(() => { } } -.buttonsLeft { - composes: buttons; - margin: 0 var(--margin) 0 0; -} - -.buttonsRight { - composes: buttons; - margin: 0 0 0 var(--margin); -} - .avatar { $size: 32px; display: inline-block; @@ -231,7 +220,7 @@ onUnmounted(() => { align-items: center; justify-content: center; height: var(--height); - width: calc(var(--height) - (var(--margin))); + width: calc(var(--height) - 8px); box-sizing: border-box; position: relative; border-radius: 5px; @@ -254,6 +243,7 @@ onUnmounted(() => { .titleContainer { display: flex; align-items: center; + min-width: 0; max-width: min(30vw, 400px); overflow: clip; white-space: nowrap; @@ -287,9 +277,6 @@ onUnmounted(() => { .title { min-width: 0; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; line-height: 1.1; } -- cgit v1.2.3-freya