From 9591faf3d4a5151ba79e3f71c8f0c604052bf08b Mon Sep 17 00:00:00 2001 From: gitgiggety <79809426+gitgiggety@users.noreply.github.com> Date: Mon, 12 Jul 2021 12:56:38 +0200 Subject: [PATCH] Mobile fixes (#1539) * Make new tag, gallery and studio pages mobile friendly * Enable new button on mobile * Update movies edit HTML to be more in line with scene Update the code of the MovieEditPanel to be more in sync with the SceneEditPanel. Changes made are: * Use FormUtil.renderLabel instead of manually building * Always apply xs=9 breakpoint This fixes some layout issues on mobile while still looking the same on tablet and desktop resolution. * Enable delete button for tags, studios and movies on mobile * Add changelog Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com> --- .../src/components/Changelog/Changelog.tsx | 10 ++- .../src/components/Changelog/versions/v090.md | 2 + .../Galleries/GalleryDetails/Gallery.tsx | 2 +- ui/v2.5/src/components/MainNavbar.tsx | 2 +- .../Movies/MovieDetails/MovieEditPanel.tsx | 63 +++++++++---------- .../components/Shared/DetailsEditNavbar.tsx | 2 +- .../Studios/StudioDetails/Studio.tsx | 2 +- .../src/components/Tags/TagDetails/Tag.tsx | 2 +- 8 files changed, 44 insertions(+), 41 deletions(-) create mode 100644 ui/v2.5/src/components/Changelog/versions/v090.md diff --git a/ui/v2.5/src/components/Changelog/Changelog.tsx b/ui/v2.5/src/components/Changelog/Changelog.tsx index 5b7608034..87b8ff1db 100644 --- a/ui/v2.5/src/components/Changelog/Changelog.tsx +++ b/ui/v2.5/src/components/Changelog/Changelog.tsx @@ -11,6 +11,7 @@ import V050 from "./versions/v050.md"; import V060 from "./versions/v060.md"; import V070 from "./versions/v070.md"; import V080 from "./versions/v080.md"; +import V090 from "./versions/v090.md"; import { MarkdownPage } from "../Shared/MarkdownPage"; // to avoid use of explicit any @@ -49,9 +50,9 @@ const Changelog: React.FC = () => { // after new release: // add entry to releases, using the current* fields // then update the current fields. - const currentVersion = stashVersion || "v0.8.0"; + const currentVersion = stashVersion || "v0.9.0"; const currentDate = buildDate; - const currentPage = V080; + const currentPage = V090; const releases: IStashRelease[] = [ { @@ -60,6 +61,11 @@ const Changelog: React.FC = () => { page: currentPage, defaultOpen: true, }, + { + version: "v0.8.0", + date: "2021-07-02", + page: V080, + }, { version: "v0.7.0", date: "2021-05-15", diff --git a/ui/v2.5/src/components/Changelog/versions/v090.md b/ui/v2.5/src/components/Changelog/versions/v090.md new file mode 100644 index 000000000..0feb9ec2a --- /dev/null +++ b/ui/v2.5/src/components/Changelog/versions/v090.md @@ -0,0 +1,2 @@ +### 🐛 Bug fixes +* Show New and Delete buttons in mobile view. ([#1539](https://github.com/stashapp/stash/pull/1539)) \ No newline at end of file diff --git a/ui/v2.5/src/components/Galleries/GalleryDetails/Gallery.tsx b/ui/v2.5/src/components/Galleries/GalleryDetails/Gallery.tsx index 1cb433028..b438d54a7 100644 --- a/ui/v2.5/src/components/Galleries/GalleryDetails/Gallery.tsx +++ b/ui/v2.5/src/components/Galleries/GalleryDetails/Gallery.tsx @@ -277,7 +277,7 @@ export const Gallery: React.FC = () => { if (isNew) return (
-
+

{