SubNavigation: constrain width on desktop

profile-avatar-switcher
Alex Gleason 2021-09-21 13:42:25 -05:00
rodzic ce97520b11
commit 4ac76573fe
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
2 zmienionych plików z 27 dodań i 13 usunięć

Wyświetl plik

@ -61,6 +61,7 @@ class SubNavigation extends React.PureComponent {
return ( return (
<div className='sub-navigation'> <div className='sub-navigation'>
<div className='sub-navigation__content'>
<button <button
className='sub-navigation__back' className='sub-navigation__back'
onClick={this.handleBackClick} onClick={this.handleBackClick}
@ -73,6 +74,7 @@ class SubNavigation extends React.PureComponent {
{intl.formatMessage(message)} {intl.formatMessage(message)}
</div> </div>
</div> </div>
</div>
); );
} }

Wyświetl plik

@ -96,18 +96,30 @@
left: 0; left: 0;
right: 0; right: 0;
width: 100%; width: 100%;
height: 30px; height: 40px;
padding: 5px;
display: flex; display: flex;
color: var(--primary-text-color--faint); color: var(--primary-text-color--faint);
background: var(--foreground-color); background: var(--foreground-color);
justify-content: space-around;
border-bottom: 1px solid hsla(var(--primary-text-color_hsl), 0.2); border-bottom: 1px solid hsla(var(--primary-text-color_hsl), 0.2);
border-radius: 0; border-radius: 0;
align-items: center;
justify-content: center;
z-index: 999; z-index: 999;
&__content {
width: 100%;
height: 100%;
max-width: 1200px;
padding: 5px 15px;
margin: 0 auto;
display: flex;
justify-content: space-around;
box-sizing: border-box;
}
&__back { &__back {
margin-right: auto; margin-right: auto;
padding: 0;
background: transparent; background: transparent;
border: 0; border: 0;
display: flex; display: flex;