From 3fa8bb7486e77aee10a8805d5ee0d474366243f7 Mon Sep 17 00:00:00 2001 From: DebaucheryLibrarian Date: Tue, 19 Mar 2024 02:19:23 +0100 Subject: [PATCH] Preventing scene poster, stash header and bottom navigation overflow. --- assets/css/breakpoints.css | 3 +- assets/css/states.css | 6 ++ components/footer/navigation.vue | 2 +- components/scenes/tile.vue | 2 - pages/movies/+Page.vue | 2 +- pages/scene/+Page.vue | 155 +++++++++++++++++++++--------- pages/scene/+onBeforeRender.js | 4 +- pages/stashes/@username/+Page.vue | 29 +++++- src/scenes.js | 4 +- 9 files changed, 145 insertions(+), 62 deletions(-) diff --git a/assets/css/breakpoints.css b/assets/css/breakpoints.css index df46020..d5382cc 100644 --- a/assets/css/breakpoints.css +++ b/assets/css/breakpoints.css @@ -1,4 +1,5 @@ -@custom-media --small-50 (max-width: 350px); +@custom-media --small-60 (max-width: 350px); +@custom-media --small-50 (max-width: 410px); @custom-media --small-40 (max-width: 480px); @custom-media --small-30 (max-width: 540px); @custom-media --small-20 (max-width: 650px); diff --git a/assets/css/states.css b/assets/css/states.css index 22836c4..5928c02 100755 --- a/assets/css/states.css +++ b/assets/css/states.css @@ -51,3 +51,9 @@ height: 0px; } } + +.ellipsis { + white-space: nowrap; + text-overflow: ellipsis; + overflow: hidden; +} diff --git a/components/footer/navigation.vue b/components/footer/navigation.vue index f886f0b..ee5ab9f 100644 --- a/components/footer/navigation.vue +++ b/components/footer/navigation.vue @@ -61,7 +61,7 @@ const activePage = computed(() => pageContext.urlParsed.pathname.split('/')[1]); justify-content: center; align-items: center; flex-grow: 1; - padding: .5rem; + padding: .5rem 0; border: none; background: none; color: var(--highlight-strong-20); diff --git a/components/scenes/tile.vue b/components/scenes/tile.vue index 66dce62..64d053f 100644 --- a/components/scenes/tile.vue +++ b/components/scenes/tile.vue @@ -136,8 +136,6 @@ async function stash() { } async function unstash() { - console.log('unstash!', user); - try { favorited.value = false; await del(`/stashes/${user.primaryStash.id}/scenes/${props.scene.id}`); diff --git a/pages/movies/+Page.vue b/pages/movies/+Page.vue index 2ab9b08..1174d6e 100644 --- a/pages/movies/+Page.vue +++ b/pages/movies/+Page.vue @@ -357,7 +357,6 @@ function updateFilter(prop, value, reload = true) { .tile-info { flex-shrink: 0; font-size: 0; - overflow: hidden; } .tile-meta { @@ -406,6 +405,7 @@ function updateFilter(prop, value, reload = true) { } .title { + display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; diff --git a/pages/scene/+Page.vue b/pages/scene/+Page.vue index beb111b..d8d46e1 100644 --- a/pages/scene/+Page.vue +++ b/pages/scene/+Page.vue @@ -1,47 +1,52 @@ diff --git a/src/scenes.js b/src/scenes.js index 8a1e350..6124c0b 100644 --- a/src/scenes.js +++ b/src/scenes.js @@ -125,6 +125,8 @@ export async function fetchScenesById(sceneIds, reqUser) { : [], ]); + console.log(reqUser, stashes); + return sceneIds.map((sceneId) => { const scene = scenes.find((sceneEntry) => sceneEntry.id === sceneId); @@ -550,8 +552,6 @@ export async function fetchScenes(filters, rawOptions, reqUser) { const scenes = await fetchScenesById(sceneIds, reqUser); console.timeEnd('fetch full'); - console.log('total', result.total); - return { scenes, aggActors,