Compare commits

...

3 commits

Author SHA1 Message Date
thislight
2de1960fb5
BottomSheet: fix visual problem on iOS
All checks were successful
/ depoly (push) Successful in 1m1s
2024-08-05 19:05:39 +08:00
thislight
95fe954c5e
Settings: fix prefetch toot option is unresponsive 2024-08-05 18:57:43 +08:00
thislight
44d7d7d8a5
start of v1.0.3 2024-08-05 16:46:10 +08:00
3 changed files with 7 additions and 7 deletions

View file

@ -1,7 +1,7 @@
{ {
"$schema": "https://json.schemastore.org/package", "$schema": "https://json.schemastore.org/package",
"name": "tutu", "name": "tutu",
"version": "1.0.2", "version": "1.0.3",
"description": "", "description": "",
"private": true, "private": true,
"type": "module", "type": "module",

View file

@ -22,11 +22,12 @@
@media (max-width: 560px) { @media (max-width: 560px) {
& { & {
left: 0; left: 0;
top: var(--safe-area-inset-top, 0); top: 0;
transform: none; transform: none;
bottom: 0; bottom: 0;
height: 100vh; height: 100vh;
height: 100dvh; height: 100dvh;
max-height: 100%;
} }
} }
} }

View file

@ -49,7 +49,7 @@ const Settings: ParentComponent = () => {
<Scaffold <Scaffold
topbar={ topbar={
<AppBar position="static"> <AppBar position="static">
<Toolbar variant="dense"> <Toolbar variant="dense" sx={{paddingTop: "var(--safe-area-inset-top, 0px)"}}>
<IconButton onClick={[navigate, -1]}> <IconButton onClick={[navigate, -1]}>
<CloseIcon /> <CloseIcon />
</IconButton> </IconButton>
@ -94,16 +94,15 @@ const Settings: ParentComponent = () => {
<ListItem> <ListItem>
<ListItemText secondary="Regular">Fonts</ListItemText> <ListItemText secondary="Regular">Fonts</ListItemText>
</ListItem> </ListItem>
<ListItem> <ListItem onClick={(e) =>
$settings.setKey("prefetchTootsDisabled", !settings$().prefetchTootsDisabled)
}>
<ListItemText secondary="Tutu will download toots before you scroll to the position."> <ListItemText secondary="Tutu will download toots before you scroll to the position.">
Prefetch Toots Prefetch Toots
</ListItemText> </ListItemText>
<ListItemSecondaryAction> <ListItemSecondaryAction>
<Switch <Switch
checked={!settings$().prefetchTootsDisabled} checked={!settings$().prefetchTootsDisabled}
onChange={(e) =>
$settings.setKey("prefetchTootsDisabled", !e.target.checked)
}
/> />
</ListItemSecondaryAction> </ListItemSecondaryAction>
</ListItem> </ListItem>