refactor: adapt page header styles for responsive design (#7544)

#### What type of PR is this?

/area ui
/kind improvement
/milestone 2.21.x

#### What this PR does / why we need it:

Adapt page header styles for responsive design

before:

<img width="415" alt="image" src="https://github.com/user-attachments/assets/feee6f09-9a77-4bbf-94c2-77725c9ce76b" />

after:

<img width="416" alt="image" src="https://github.com/user-attachments/assets/60bb07a3-5d34-4cf6-b103-5d1f2206d62d" />

#### Which issue(s) this PR fixes:

Fixes https://github.com/halo-dev/halo/issues/6425

#### Special notes for your reviewer:

#### Does this PR introduce a user-facing change?

```release-note
优化移动端下文章编辑页面的样式
```
This commit is contained in:
Ryan Wang
2025-06-13 14:06:42 +08:00
committed by GitHub
parent 016d4cd94b
commit d39a571e46
33 changed files with 392 additions and 388 deletions

View File

@@ -13,7 +13,6 @@ import {
VButton,
VDropdown,
VDropdownItem,
VSpace,
VTabbar,
} from "@halo-dev/components";
import type {
@@ -321,12 +320,12 @@ function handleCopyFromLayout(breakpoint: string) {
}
</script>
<template>
<div
class="flex items-center justify-between bg-white px-4 py-1.5 gap-5 flex-wrap sticky top-0 z-10"
>
<h2 class="flex items-center truncate text-xl font-bold text-gray-800">
<div class="page-header py-1.5">
<h2 class="page-header__title">
<IconDashboard class="mr-2 self-center" />
<span>{{ $t("core.dashboard_designer.title") }}</span>
<span class="page-header__title-text">
{{ $t("core.dashboard_designer.title") }}
</span>
</h2>
<div
class="hidden sm:block"
@@ -339,7 +338,7 @@ function handleCopyFromLayout(breakpoint: string) {
@change="handleBreakpointChange"
></VTabbar>
</div>
<VSpace>
<div class="page-header__actions">
<VButton ghost @click="handleBack">
{{ $t("core.common.buttons.back") }}
</VButton>
@@ -398,7 +397,7 @@ function handleCopyFromLayout(breakpoint: string) {
</template>
{{ $t("core.common.buttons.save") }}
</VButton>
</VSpace>
</div>
</div>
<div class="dashboard m-4 transition-all" :style="designContainerStyles">