Merge pull request #103 from SlimusMinus/fix-review_top_bar
All checks were successful
deploy-frontend / deploy (push) Successful in 43s
All checks were successful
deploy-frontend / deploy (push) Successful in 43s
moved word review on review page
This commit is contained in:
@@ -19,7 +19,9 @@ export default function AppTopBar({
|
|||||||
}) {
|
}) {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
return (
|
return (
|
||||||
<div className="f-topbar">
|
// Без названия сервиса — заголовок строго по центру экрана (см. .f-topbar-centered),
|
||||||
|
// иначе он центрировался бы между кнопками разной ширины и уезжал влево
|
||||||
|
<div className={`f-topbar${hideWordmark ? " f-topbar-centered" : ""}`}>
|
||||||
<button className="f-menu-btn" onClick={onMenuClick}>
|
<button className="f-menu-btn" onClick={onMenuClick}>
|
||||||
<MenuIcon />
|
<MenuIcon />
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@@ -150,6 +150,14 @@
|
|||||||
.f-menu-btn svg { width: 45%; height: 45%; }
|
.f-menu-btn svg { width: 45%; height: 45%; }
|
||||||
|
|
||||||
.f-topbar-center { flex: 1; display: flex; justify-content: center; min-width: 0; }
|
.f-topbar-center { flex: 1; display: flex; justify-content: center; min-width: 0; }
|
||||||
|
/* Заголовок по центру экрана: боковые колонки равной ширины (1fr), поэтому
|
||||||
|
разная ширина бургера и кнопки «Войти»/аватара центр не смещает */
|
||||||
|
.f-topbar.f-topbar-centered {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 1fr minmax(0, auto) 1fr;
|
||||||
|
}
|
||||||
|
.f-topbar-centered > :first-child { justify-self: start; }
|
||||||
|
.f-topbar-centered > :last-child { justify-self: end; }
|
||||||
.f-topbar-wordmark {
|
.f-topbar-wordmark {
|
||||||
color: var(--text-primary); font-weight: 900; font-size: 1.05rem;
|
color: var(--text-primary); font-weight: 900; font-size: 1.05rem;
|
||||||
letter-spacing: -.4px; white-space: nowrap; margin-left: 2px;
|
letter-spacing: -.4px; white-space: nowrap; margin-left: 2px;
|
||||||
|
|||||||
Reference in New Issue
Block a user