mirror of
https://github.com/morpheus65535/bazarr
synced 2025-03-06 19:39:03 +00:00
no log: table overflow wrapper specific to upload modal (#2459)
* fix: table overflow wrapper specific to upload modal * chore: apply prettier
This commit is contained in:
parent
b7be8007f2
commit
eff4568f72
3 changed files with 22 additions and 3 deletions
|
@ -19,6 +19,7 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|||
import {
|
||||
Button,
|
||||
Checkbox,
|
||||
createStyles,
|
||||
Divider,
|
||||
MantineColor,
|
||||
Stack,
|
||||
|
@ -78,12 +79,21 @@ interface Props {
|
|||
onComplete?: () => void;
|
||||
}
|
||||
|
||||
const useStyles = createStyles((theme) => {
|
||||
return {
|
||||
wrapper: {
|
||||
overflowWrap: "anywhere",
|
||||
},
|
||||
};
|
||||
});
|
||||
|
||||
const MovieUploadForm: FunctionComponent<Props> = ({
|
||||
files,
|
||||
movie,
|
||||
onComplete,
|
||||
}) => {
|
||||
const modals = useModals();
|
||||
const { classes } = useStyles();
|
||||
|
||||
const profile = useLanguageProfileBy(movie.profileId);
|
||||
|
||||
|
@ -279,7 +289,7 @@ const MovieUploadForm: FunctionComponent<Props> = ({
|
|||
modals.closeSelf();
|
||||
})}
|
||||
>
|
||||
<Stack>
|
||||
<Stack className={classes.wrapper}>
|
||||
<SimpleTable columns={columns} data={form.values.files}></SimpleTable>
|
||||
<Divider></Divider>
|
||||
<Button type="submit">Upload</Button>
|
||||
|
|
|
@ -23,6 +23,7 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|||
import {
|
||||
Button,
|
||||
Checkbox,
|
||||
createStyles,
|
||||
Divider,
|
||||
MantineColor,
|
||||
Stack,
|
||||
|
@ -85,12 +86,21 @@ interface Props {
|
|||
onComplete?: VoidFunction;
|
||||
}
|
||||
|
||||
const useStyles = createStyles((theme) => {
|
||||
return {
|
||||
wrapper: {
|
||||
overflowWrap: "anywhere",
|
||||
},
|
||||
};
|
||||
});
|
||||
|
||||
const SeriesUploadForm: FunctionComponent<Props> = ({
|
||||
series,
|
||||
files,
|
||||
onComplete,
|
||||
}) => {
|
||||
const modals = useModals();
|
||||
const { classes } = useStyles();
|
||||
const episodes = useEpisodesBySeriesId(series.sonarrSeriesId);
|
||||
const episodeOptions = useSelectorOptions(
|
||||
episodes.data ?? [],
|
||||
|
@ -358,7 +368,7 @@ const SeriesUploadForm: FunctionComponent<Props> = ({
|
|||
modals.closeSelf();
|
||||
})}
|
||||
>
|
||||
<Stack>
|
||||
<Stack className={classes.wrapper}>
|
||||
<SimpleTable columns={columns} data={form.values.files}></SimpleTable>
|
||||
<Divider></Divider>
|
||||
<Button type="submit">Upload</Button>
|
||||
|
|
|
@ -24,7 +24,6 @@ const useStyles = createStyles((theme) => {
|
|||
display: "block",
|
||||
maxWidth: "100%",
|
||||
overflowX: "auto",
|
||||
overflowWrap: "anywhere",
|
||||
},
|
||||
table: {
|
||||
borderCollapse: "collapse",
|
||||
|
|
Loading…
Add table
Reference in a new issue