Fix theme-toggle v-align issues
This commit is contained in:
parent
c0dc03b3e4
commit
e8288ffdf8
4 changed files with 5 additions and 13 deletions
|
@ -98,7 +98,7 @@ class TabsBar extends React.PureComponent {
|
|||
<SearchContainer openInRoute />
|
||||
</div>
|
||||
{ account &&
|
||||
<div className='flex'>
|
||||
<>
|
||||
<ThemeToggle />
|
||||
<div className='tabs-bar__profile'>
|
||||
<Avatar account={account} />
|
||||
|
@ -108,7 +108,7 @@ class TabsBar extends React.PureComponent {
|
|||
<button className='tabs-bar__button-compose button' onClick={onOpenCompose} aria-label={intl.formatMessage(messages.post)}>
|
||||
<span>{intl.formatMessage(messages.post)}</span>
|
||||
</button>
|
||||
</div>
|
||||
</>
|
||||
}
|
||||
{
|
||||
!account &&
|
||||
|
|
|
@ -52,7 +52,7 @@ class ThemeToggle extends React.PureComponent {
|
|||
}
|
||||
|
||||
return (
|
||||
<div class='theme-toggle'>
|
||||
<div className='theme-toggle'>
|
||||
{toggle}
|
||||
</div>
|
||||
);
|
||||
|
|
|
@ -161,10 +161,6 @@
|
|||
margin-right: 10px;
|
||||
}
|
||||
|
||||
&.theme-toggle {
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
&__title {
|
||||
color: var(--primary-text-color);
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
|
||||
&--right {
|
||||
margin-left: auto;
|
||||
padding-top: 8px;
|
||||
align-items: center;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -137,21 +137,17 @@
|
|||
height: 34px;
|
||||
}
|
||||
|
||||
.flex {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.theme-toggle {
|
||||
@media screen and (max-width: $nav-breakpoint-3) {display: none;}
|
||||
|
||||
.setting-toggle {
|
||||
margin-top: 3px;
|
||||
margin-left: 10px;
|
||||
|
||||
.react-toggle--checked {
|
||||
.react-toggle-track {
|
||||
background-color: var(--accent-color);
|
||||
}
|
||||
|
||||
&:hover:not(.react-toggle--disabled) .react-toggle-track {
|
||||
background-color: var(--accent-color--bright);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue