mirror of
https://github.com/KivotosRailway/website.git
synced 2026-11-03 11:06:32 +09:00
页面布局自适应修调
This commit is contained in:
@@ -73,6 +73,24 @@ export function SiteHeader() {
|
||||
</Link>
|
||||
);
|
||||
})}
|
||||
<div className="site-mobile-locale" aria-label="语言选择">
|
||||
{locales.map((item) => (
|
||||
<button
|
||||
key={item}
|
||||
type="button"
|
||||
className={item === locale ? "active" : ""}
|
||||
aria-pressed={item === locale}
|
||||
onClick={() => {
|
||||
setLocale(item);
|
||||
applyLocale(item);
|
||||
}}
|
||||
aria-label={localeLabels[item]}
|
||||
title={localeLabels[item]}
|
||||
>
|
||||
<span className="locale-button-label">{localeShortLabels[item]}</span>
|
||||
</button>
|
||||
))}
|
||||
</div>
|
||||
</nav>
|
||||
<div className="site-header-actions">
|
||||
<div className="site-locale" aria-label="语言选择">
|
||||
|
||||
Reference in New Issue
Block a user