From 4fc7fc5f40f03454b8222cca70478cb1e68f4deb Mon Sep 17 00:00:00 2001 From: WonderAliceUwU Date: Thu, 6 Aug 2026 00:40:53 +0200 Subject: [PATCH] feature: adapt to smallers screens --- src/index.css | 125 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 125 insertions(+) diff --git a/src/index.css b/src/index.css index 1b2fb85..5829e97 100644 --- a/src/index.css +++ b/src/index.css @@ -654,6 +654,131 @@ img { } } +/* Keep the desktop layout usable on laptop-sized viewports without switching + to the mobile presentation. */ +@media (min-width: 981px) and (max-width: 1440px), (min-width: 981px) and (max-height: 900px) { + .reiverr-app { + width: 121.95122%; + height: 121.95122%; + zoom: 0.82; + } + + .modal-backdrop { + zoom: 1.2195122; + padding: 0.75rem; + } + + .title-details-modal { + width: calc(100vw - 1.5rem); + height: calc(100vh - 1.5rem); + max-height: calc(100vh - 1.5rem); + } + + .title-details-modal-content { + width: 100%; + height: 100%; + margin: auto; + zoom: 0.9; + } + + .title-details-modal-content.has-embedded-player { + display: grid; + place-items: center; + zoom: 1; + } + + .title-embedded-player { + display: grid; + grid-template-rows: auto minmax(0, 1fr); + width: min(100%, 72rem); + height: min(44rem, calc(100svh - 5rem)); + margin-top: 0; + padding: 1.25rem 2rem 1.75rem; + } + + .title-player-frame-shell { + height: 100%; + aspect-ratio: auto; + } + + .title-details-body.has-embedded-player { + display: none; + } + + .content-shell { + padding-block: 0.625rem; + } + + .content-scroll { + padding-bottom: 1.5rem; + } + + .hub-page, + .search-page, + .calendar-page, + .downloads-page, + .settings-page { + gap: 1.5rem; + } + + .hero-showcase { + width: calc(100% - 1.5rem); + min-height: min(34rem, 46vw, calc(100svh - 16rem)); + margin-inline: 0.75rem; + border-radius: 1.2rem; + } + + .hero-content { + gap: 1rem; + } + + .hero-logo-image { + max-height: 10rem; + } + + .carousel-row { + gap: 0.65rem; + } + + .carousel-section { + margin-inline: 0.75rem; + padding-block: 0.75rem; + border-radius: 2rem; + } + + .carousel-title { + padding-inline: 1rem; + font-size: 1.2rem; + } + + .carousel-track { + gap: 0.75rem; + padding: 0.4rem 1rem; + } + + .media-tile.landscape, + .media-tile.episode { + width: min(20rem, 70vw); + } + + .media-tile.poster { + width: 11.5rem; + } + + .media-tile.profile, + .media-tile.genre, + .media-tile.network { + width: 10rem; + } + + .library-grid, + .search-results-grid { + grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); + gap: 0.9rem; + padding: 1rem; + } +} + .hero-showcase.empty { min-height: 18rem; background: rgba(255, 255, 255, 0.04);