diff --git a/ht_booking/assets/i18n/en/main.ftl b/ht_booking/assets/i18n/en/main.ftl index bd09727..3aaef1a 100644 --- a/ht_booking/assets/i18n/en/main.ftl +++ b/ht_booking/assets/i18n/en/main.ftl @@ -54,6 +54,9 @@ settings-language = Language settings-theme = Theme view-details = Details pick-week = Go to week +menu = Menu +prev-day = Previous day +next-day = Next day hour-from = From hour-to = Until repeat-weeks = Repeat for (weeks) diff --git a/ht_booking/assets/i18n/sk/main.ftl b/ht_booking/assets/i18n/sk/main.ftl index 61c7573..148c145 100644 --- a/ht_booking/assets/i18n/sk/main.ftl +++ b/ht_booking/assets/i18n/sk/main.ftl @@ -54,6 +54,9 @@ settings-language = Jazyk settings-theme = Téma view-details = Detaily pick-week = Prejsť na týždeň +menu = Menu +prev-day = Predchádzajúci deň +next-day = Nasledujúci deň hour-from = Od hour-to = Do repeat-weeks = Opakovať (počet týždňov) diff --git a/ht_booking/assets/views/base.html b/ht_booking/assets/views/base.html index 9c544c3..b70a8b5 100644 --- a/ht_booking/assets/views/base.html +++ b/ht_booking/assets/views/base.html @@ -53,25 +53,64 @@ .table tbody tr:not(:last-child) :where(th, td) { border-bottom-color: hsl(var(--bc) / 0.18); } + + /* Mobile: pin navbar dropdowns to the viewport's right edge and cap their + width so they can never spill off-screen, whatever the trigger's spot. */ + @media (max-width: 767px) { + .navbar .dropdown-content { + position: fixed; + top: 4rem; + right: 0.5rem; + left: auto; + margin-top: 0; + max-width: calc(100vw - 1rem); + } + } {% block head %}{% endblock head %}