Skip to content

Commit

Permalink
Fix settings in extension popup beeing wrong orientation
Browse files Browse the repository at this point in the history
  • Loading branch information
killergerbah committed Jan 6, 2024
1 parent ca6bb00 commit ebc8a20
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion common/components/SettingsForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,7 @@ interface Props {
localFontsPermission?: PermissionState;
localFontFamilies: string[];
supportedLanguages: string[];
forceVerticalTabs?: boolean;
onSettingsChanged: (settings: Partial<AsbplayerSettings>) => void;
onOpenChromeExtensionShortcuts: () => void;
onUnlockLocalFonts: () => void;
Expand All @@ -549,12 +550,13 @@ export default function SettingsForm({
localFontsPermission,
localFontFamilies,
supportedLanguages,
forceVerticalTabs,
onSettingsChanged,
onOpenChromeExtensionShortcuts,
onUnlockLocalFonts,
}: Props) {
const theme = useTheme();
const smallScreen = useMediaQuery(theme.breakpoints.down('xs'));
const smallScreen = useMediaQuery(theme.breakpoints.down('xs')) && !forceVerticalTabs;
const classes = useStyles({ smallScreen });
const handleSettingChanged = useCallback(
async <K extends keyof AsbplayerSettings>(key: K, value: AsbplayerSettings[K]) => {
Expand Down
1 change: 1 addition & 0 deletions extension/src/ui/components/Popup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ const Popup = ({
<SettingsForm
extensionInstalled
extensionSupportsAppIntegration
forceVerticalTabs
anki={anki}
chromeKeyBinds={chromeCommandBindsToKeyBinds(commands)}
settings={settings}
Expand Down

0 comments on commit ebc8a20

Please sign in to comment.