no log: table overflow wrapper specific to upload modal (#2459)

* fix: table overflow wrapper specific to upload modal

* chore: apply prettier
pull/2460/head v1.4.3-beta.20
Anderson Shindy Oki 7 months ago committed by GitHub
parent b7be8007f2
commit eff4568f72
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -19,6 +19,7 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { import {
Button, Button,
Checkbox, Checkbox,
createStyles,
Divider, Divider,
MantineColor, MantineColor,
Stack, Stack,
@ -78,12 +79,21 @@ interface Props {
onComplete?: () => void; onComplete?: () => void;
} }
const useStyles = createStyles((theme) => {
return {
wrapper: {
overflowWrap: "anywhere",
},
};
});
const MovieUploadForm: FunctionComponent<Props> = ({ const MovieUploadForm: FunctionComponent<Props> = ({
files, files,
movie, movie,
onComplete, onComplete,
}) => { }) => {
const modals = useModals(); const modals = useModals();
const { classes } = useStyles();
const profile = useLanguageProfileBy(movie.profileId); const profile = useLanguageProfileBy(movie.profileId);
@ -279,7 +289,7 @@ const MovieUploadForm: FunctionComponent<Props> = ({
modals.closeSelf(); modals.closeSelf();
})} })}
> >
<Stack> <Stack className={classes.wrapper}>
<SimpleTable columns={columns} data={form.values.files}></SimpleTable> <SimpleTable columns={columns} data={form.values.files}></SimpleTable>
<Divider></Divider> <Divider></Divider>
<Button type="submit">Upload</Button> <Button type="submit">Upload</Button>

@ -23,6 +23,7 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { import {
Button, Button,
Checkbox, Checkbox,
createStyles,
Divider, Divider,
MantineColor, MantineColor,
Stack, Stack,
@ -85,12 +86,21 @@ interface Props {
onComplete?: VoidFunction; onComplete?: VoidFunction;
} }
const useStyles = createStyles((theme) => {
return {
wrapper: {
overflowWrap: "anywhere",
},
};
});
const SeriesUploadForm: FunctionComponent<Props> = ({ const SeriesUploadForm: FunctionComponent<Props> = ({
series, series,
files, files,
onComplete, onComplete,
}) => { }) => {
const modals = useModals(); const modals = useModals();
const { classes } = useStyles();
const episodes = useEpisodesBySeriesId(series.sonarrSeriesId); const episodes = useEpisodesBySeriesId(series.sonarrSeriesId);
const episodeOptions = useSelectorOptions( const episodeOptions = useSelectorOptions(
episodes.data ?? [], episodes.data ?? [],
@ -358,7 +368,7 @@ const SeriesUploadForm: FunctionComponent<Props> = ({
modals.closeSelf(); modals.closeSelf();
})} })}
> >
<Stack> <Stack className={classes.wrapper}>
<SimpleTable columns={columns} data={form.values.files}></SimpleTable> <SimpleTable columns={columns} data={form.values.files}></SimpleTable>
<Divider></Divider> <Divider></Divider>
<Button type="submit">Upload</Button> <Button type="submit">Upload</Button>

@ -24,7 +24,6 @@ const useStyles = createStyles((theme) => {
display: "block", display: "block",
maxWidth: "100%", maxWidth: "100%",
overflowX: "auto", overflowX: "auto",
overflowWrap: "anywhere",
}, },
table: { table: {
borderCollapse: "collapse", borderCollapse: "collapse",

Loading…
Cancel
Save