mirror of
https://git.netzspielplatz.de/docker-multiarch/openwrt-firmware-selector.git
synced 2025-11-08 22:09:25 +00:00
Fix responsive design issues
Signed-off-by: Sudhanshu Gautam <me@sudhanshug.com>
This commit is contained in:
parent
740383d6be
commit
db14840f4a
9 changed files with 144 additions and 77 deletions
|
|
@ -16,6 +16,7 @@ import {
|
|||
} from '@material-ui/core';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import i18next from 'i18next';
|
||||
import '../App.scss';
|
||||
|
||||
export default function Header() {
|
||||
const { t, i18n } = useTranslation();
|
||||
|
|
@ -38,11 +39,12 @@ export default function Header() {
|
|||
const id = open ? 'simple-popper' : undefined;
|
||||
|
||||
return (
|
||||
<AppBar position="static">
|
||||
<AppBar position="static" className="header">
|
||||
<Toolbar>
|
||||
<Typography edge="start" variant="h6">
|
||||
{t('OpenWrt Firmware Selector Wizard')}
|
||||
<Typography edge="start" variant="h6" className="title-desktop">
|
||||
{t('OpenWrt Firmware Selector')}
|
||||
</Typography>
|
||||
<span className="title-mobile">{t('OpenWrt Firmware Selector')}</span>
|
||||
<div style={{ flexGrow: 1 }} />
|
||||
<Button
|
||||
aria-describedby={id}
|
||||
|
|
@ -51,7 +53,9 @@ export default function Header() {
|
|||
onClick={openChangeLanguagePopper}
|
||||
href="#"
|
||||
>
|
||||
{t('Change Language')}
|
||||
<span className="language-toggle-text">
|
||||
{t('Change Language')}
|
||||
</span>
|
||||
<LanguageIcon />
|
||||
</Button>
|
||||
<Popper
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue