TootLangPicker: fix scrolling
This commit is contained in:
parent
2c35950d27
commit
edfbf5505b
3 changed files with 8 additions and 7 deletions
|
@ -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";
|
||||||
|
|
4
src/timelines/TootLangPicker.css
Normal file
4
src/timelines/TootLangPicker.css
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
|
||||||
|
.TootLangPicker {
|
||||||
|
overflow: auto;
|
||||||
|
}
|
|
@ -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!}
|
Loading…
Reference in a new issue