Skip to content

Commit

Permalink
chore: Fix the alignment of the theme toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
jessieweiyi committed Jul 8, 2024
1 parent a41e4b7 commit f460e38
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ import { css } from '@emotion/react';
import { useThemeContext } from '../ThemeProvider';

const styles = {
container: css({
height: '100%',
display: 'flex',
alignItems: 'center',
}),
svg: css({
color: 'grey !important',
fill: 'grey !important',
Expand All @@ -35,7 +30,7 @@ const styles = {

const ThemeToggle = () => {
const { theme, setTheme } = useThemeContext();
return (<div css={styles.container}>
return (<div>
<SpaceBetween direction="horizontal" size="xs">
<Toggle
onChange={({ detail }) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ import FileImport from '../../workspaces/FileImport';

const styles = {
themeToggle: css({
height: '100%',
display: 'flex',
alignItems: 'center',
[getMobileMediaQuery()]: {
display: 'none',
},
Expand Down

0 comments on commit f460e38

Please sign in to comment.