TootLangPicker: fix scrolling

This commit is contained in:
thislight 2024-11-24 16:55:40 +08:00
parent 2c35950d27
commit edfbf5505b
No known key found for this signature in database
GPG key ID: FCFE5192241CCD4E
3 changed files with 8 additions and 7 deletions

View file

@ -44,7 +44,7 @@ import "./TootComposer.css";
import BottomSheet from "~material/BottomSheet"; import BottomSheet from "~material/BottomSheet";
import { useAppLocale } from "~platform/i18n"; import { useAppLocale } from "~platform/i18n";
import iso639_1 from "iso-639-1"; import iso639_1 from "iso-639-1";
import ChooseTootLang from "./ChooseTootLang"; import ChooseTootLang from "./TootLangPicker";
import type { mastodon } from "masto"; import type { mastodon } from "masto";
import cardStyles from "~material/cards.module.css"; import cardStyles from "~material/cards.module.css";
import Menu, { createManagedMenuState } from "~material/Menu"; import Menu, { createManagedMenuState } from "~material/Menu";

View file

@ -0,0 +1,4 @@
.TootLangPicker {
overflow: auto;
}

View file

@ -1,9 +1,4 @@
import { import { For, onMount, type Component, type JSX } from "solid-js";
For,
onMount,
type Component,
type JSX,
} from "solid-js";
import Scaffold from "~material/Scaffold"; import Scaffold from "~material/Scaffold";
import { import {
AppBar, AppBar,
@ -19,6 +14,7 @@ import { Close as CloseIcon } from "@suid/icons-material";
import iso639_1 from "iso-639-1"; import iso639_1 from "iso-639-1";
import { createTranslator } from "~platform/i18n"; import { createTranslator } from "~platform/i18n";
import { Title } from "~material/typography"; import { Title } from "~material/typography";
import "./TootLangPicker.css";
type ChooseTootLangProps = { type ChooseTootLangProps = {
code: string; code: string;
@ -58,6 +54,7 @@ const ChooseTootLang: Component<ChooseTootLangProps> = (props) => {
</Toolbar> </Toolbar>
</AppBar> </AppBar>
} }
class="TootLangPicker"
> >
<List <List
ref={listRef!} ref={listRef!}