From 74844cb1c2d40c464e266179afe93bbd9f5da43f Mon Sep 17 00:00:00 2001 From: Dankonite Date: Fri, 12 Apr 2024 18:29:20 -0600 Subject: [PATCH] scenepage stuff --- .../src/components/ScenePlayer/styles.scss | 7 ++- .../components/Scenes/SceneDetails/Scene.tsx | 49 ++++++++++--------- .../Scenes/SceneDetails/SceneRecs.tsx | 2 +- .../Scenes/SceneDetails/TagsButtons.tsx | 5 +- ui/v2.5/src/components/Scenes/styles.scss | 18 +++++-- 5 files changed, 47 insertions(+), 34 deletions(-) diff --git a/ui/v2.5/src/components/ScenePlayer/styles.scss b/ui/v2.5/src/components/ScenePlayer/styles.scss index 474ed9a687f..2ecf054a0cc 100644 --- a/ui/v2.5/src/components/ScenePlayer/styles.scss +++ b/ui/v2.5/src/components/ScenePlayer/styles.scss @@ -594,7 +594,7 @@ $sceneTabWidth: 450px; text-decoration: none; color: #fff } - + /* Hide scrollbar for Chrome, Safari and Opera */ .side-bar::-webkit-scrollbar { display: none; @@ -602,6 +602,11 @@ $sceneTabWidth: 450px; .the-vert { width: calc(80vw); } +@media (min-width: 576px) { + .tags-performers { + display: flex; + } +} .the-vert.expand { width: calc(100vw); } diff --git a/ui/v2.5/src/components/Scenes/SceneDetails/Scene.tsx b/ui/v2.5/src/components/Scenes/SceneDetails/Scene.tsx index 6c5a861cd25..55762eabaca 100644 --- a/ui/v2.5/src/components/Scenes/SceneDetails/Scene.tsx +++ b/ui/v2.5/src/components/Scenes/SceneDetails/Scene.tsx @@ -628,10 +628,7 @@ const SceneLoader: React.FC> = ({ function maybeRenderTags() { return scene!.tags.length != 0 ? (
@@ -639,8 +636,8 @@ const SceneLoader: React.FC> = ({ } function maybeRenderPerformers() { return scene!.performers.length != 0 ? ( -
2 ? "360px" : "480px") +
2 ? "200px" : "400px") }} key={scene!.id}>
) : ("") } @@ -719,40 +716,44 @@ const SceneLoader: React.FC> = ({
-

{scene.title}

+
+

{scene.title}

+
+
+ setWideMode(!wideMode)} + setEditMode={() => setEditMode(!editMode)} + /> +
+
- +
{scene.studio?.name}
{scene.date}
+
{file?.width && file?.height && (
:{" "} {TextUtils.resolution(file.width, file.height)}
)} -
- +
+ + {maybeRenderTags()} + {maybeRenderPerformers()}
- -
-
- setWideMode(!wideMode)} - setEditMode={() => setEditMode(!editMode)} - /> -
-
- {maybeRenderTags()} - {maybeRenderPerformers()} -
-
+
+ + {scene.details} + +
: diff --git a/ui/v2.5/src/components/Scenes/SceneDetails/SceneRecs.tsx b/ui/v2.5/src/components/Scenes/SceneDetails/SceneRecs.tsx index 4ff0260d2dc..664738b5ea3 100644 --- a/ui/v2.5/src/components/Scenes/SceneDetails/SceneRecs.tsx +++ b/ui/v2.5/src/components/Scenes/SceneDetails/SceneRecs.tsx @@ -208,7 +208,7 @@ export const SceneRecs: React.FC = ({