Skip to content

Commit

Permalink
Fix scene edit panel layout
Browse files Browse the repository at this point in the history
  • Loading branch information
liquid-flow committed Sep 17, 2021
1 parent 501ed7c commit 3f48043
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
2 changes: 2 additions & 0 deletions ui/v2.5/src/components/Changelog/versions/v0110.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
### 🐛 Bug fixes
* Fix Scene Edit Panel form layout for mobile and desktop. ([#1737](https://github.com/stashapp/stash/pull/1737))
16 changes: 12 additions & 4 deletions ui/v2.5/src/components/Scenes/SceneDetails/SceneEditPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ export const SceneEditPanel: React.FC<IProps> = ({
</div>
</div>
<div className="form-container row px-3">
<div className="col-12 col-lg-6 col-xl-12">
<div className="col-12 col-lg-7 col-xl-12">
{renderTextField("title", intl.formatMessage({ id: "title" }))}
<Form.Group controlId="url" as={Row}>
<Col xs={3} className="pr-0 url-label">
Expand Down Expand Up @@ -685,8 +685,12 @@ export const SceneEditPanel: React.FC<IProps> = ({
<Form.Group controlId="galleries" as={Row}>
{FormUtils.renderLabel({
title: intl.formatMessage({ id: "galleries" }),
labelProps: {
column: true,
sm: 3,
},
})}
<Col xs={9}>
<Col sm={9}>
<GallerySelect
galleries={galleries}
onSelect={(items) => onSetGalleries(items)}
Expand All @@ -697,8 +701,12 @@ export const SceneEditPanel: React.FC<IProps> = ({
<Form.Group controlId="studio" as={Row}>
{FormUtils.renderLabel({
title: intl.formatMessage({ id: "studios" }),
labelProps: {
column: true,
sm: 3,
},
})}
<Col xs={9}>
<Col sm={9}>
<StudioSelect
onSelect={(items) =>
formik.setFieldValue(
Expand Down Expand Up @@ -815,7 +823,7 @@ export const SceneEditPanel: React.FC<IProps> = ({
</ul>
</Form.Group>
</div>
<div className="col-12 col-lg-6 col-xl-12">
<div className="col-12 col-lg-5 col-xl-12">
<Form.Group controlId="details">
<Form.Label>
<FormattedMessage id="details" />
Expand Down

0 comments on commit 3f48043

Please sign in to comment.