Skip to content

Commit ac95920

Browse files
committed
fix: header subtitle overflow
Signed-off-by: Innei <tukon479@gmail.com>
1 parent 77301f0 commit ac95920

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

src/components/layouts/BasicLayout/Header/Header.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,15 @@ export const Header: FC = observer(() => {
106106
)}
107107
>
108108
<div
109-
className={classNames(styles['head-swiper'], 'justify-between')}
109+
className={classNames(
110+
styles['head-swiper'],
111+
'justify-between min-w-0',
112+
)}
110113
ref={appHeaderRef}
111114
>
112115
<div
113116
className={
114-
'flex items-center justify-center cursor-pointer select-none'
117+
'flex items-center justify-center cursor-pointer select-none min-w-0'
115118
}
116119
onClick={clickFunc}
117120
>

src/components/layouts/BasicLayout/Header/index.module.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,21 +39,21 @@
3939
}
4040

4141
.header-title-wrapper {
42-
@apply flex flex-col ml-4 py-2 box-border justify-center;
42+
@apply flex flex-col ml-4 py-2 box-border justify-center min-w-0;
4343

4444
height: 4rem;
4545
}
4646

4747
.title {
48-
@apply relative inline-block text-xl font-medium mt-0 truncate flex-shrink-0;
48+
@apply relative inline-block text-xl font-medium mt-0 truncate flex-shrink-0 min-w-0;
4949

5050
&.title-has-sub {
5151
@apply text-lg;
5252
}
5353
}
5454

5555
.subtitle {
56-
@apply text-sm text-gray-2;
56+
@apply text-sm text-gray-2 flex-1 min-w-0 truncate;
5757

5858
margin-top: -0.3rem;
5959
}

0 commit comments

Comments
 (0)