Skip to content

Commit 3fb3d2c

Browse files
committed
fix: style of LangSwitch in large size
1 parent b449536 commit 3fb3d2c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/slots/Header/index.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ const useStyle = () => {
6767
0 1px 6px -1px rgba(0, 0, 0, 0.02),
6868
0 2px 4px 0 rgba(0, 0, 0, 0.02);
6969
border-bottom: 0;
70+
padding-right: 20px; /* 添加右侧内边距 */
7071
7172
@media only screen and (max-width: ${token.mobileMaxWidth}px) {
7273
text-align: center;
@@ -288,6 +289,7 @@ const Header: FC = () => {
288289
{/* 菜单和语言切换部分 */}
289290
<Col
290291
flex="none"
292+
css={responsive === 'large' ? style.menuRow : undefined} // 正确应用 css 属性
291293
style={{
292294
display: 'flex',
293295
alignItems: 'center',
@@ -296,10 +298,7 @@ const Header: FC = () => {
296298
width: 120,
297299
height: 50
298300
}
299-
: {
300-
// 大尺寸下,使用菜单行样式
301-
css: style.menuRow
302-
})
301+
: {})
303302
}}
304303
>
305304
{responsive !== 'large' ? (

0 commit comments

Comments
 (0)