From 3b46432b1af51e8aefd3ba1ec0895d78e18b4dc8 Mon Sep 17 00:00:00 2001 From: Roni Laukkarinen Date: Mon, 13 Mar 2023 19:58:21 +0200 Subject: [PATCH] Fix iOS Safari issue #1 --- CHANGELOG.md | 3 ++- style.css | 46 ++++++++++++++++++++++++---------------------- 2 files changed, 26 insertions(+), 23 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 240cec3..9b8bb1d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,10 @@ -### 1.1.9rc3: 2023-03-13 +### 1.1.9: 2023-03-13 * Fix blur overlay on iPad * Fix compose form z-index on mobile * Add green/red indicator in the follow/unfollow button in notifications * Add missing stylelint-order package +* Fix iOS Safari issue #1 ### 1.1.8: 2023-03-12 diff --git a/style.css b/style.css index f6f24e8..2958bdc 100644 --- a/style.css +++ b/style.css @@ -1,5 +1,5 @@ /* Mastodon Bird UI by @rolle@mementomori.social - 1.1.9rc3 */ + 1.1.9 */ /* CSS variables */ :root { @@ -67,6 +67,11 @@ :root { --font-size-heading: 17px; } + + /* Hide scrollbar on mobile, since we can't pick the handle anyway */ + .layout-single-column::-webkit-scrollbar { + display: none; + } } body.layout-single-column { @@ -76,7 +81,8 @@ body.layout-single-column { } .layout-single-column .ui { - width: calc(100% - 4px); + display: flex; + width: 100%; } /* Text color */ @@ -1154,16 +1160,16 @@ a.status-card.compact .status-card__description { .layout-single-column .notification .account__relationship .icon-button:focus .fa::before, .layout-single-column .notification .account__relationship .icon-button:hover .fa::before { - opacity: 1; /* stylelint-disable-next-line */ color: var(--color-red) !important; + opacity: 1; } .layout-single-column .notification .account__relationship .icon-button:not(.active):focus .fa::before, .layout-single-column .notification .account__relationship .icon-button:not(.active):hover .fa::before { - opacity: 1; /* stylelint-disable-next-line */ color: var(--color-green) !important; + opacity: 1; } .layout-single-column .account__relationship .button:hover { @@ -2044,22 +2050,22 @@ a.status-card.compact .status-card__description { z-index: 2; } - .layout-single-column .app-holder, - .layout-single-column .app-holder > div, - body.app-body.layout-single-column { - overflow-x: hidden; - } - .layout-single-column .tabs-bar__wrapper { margin-right: 0; position: sticky; top: 55px; + z-index: 2; } .layout-single-column .columns-area__panels__main { order: 1; - position: absolute; - width: calc(100% - 4px); + position: unset; + width: 100%; + } + + .layout-single-column .columns-area__panels { + flex-direction: column; + justify-content: flex-start; } .layout-single-column .columns-area__panels__main::-webkit-scrollbar { @@ -2147,11 +2153,16 @@ a.status-card.compact .status-card__description { } .layout-single-column .ui__header { + align-items: center; border-bottom: 0; + box-sizing: border-box; + display: flex; height: 56px; - position: fixed; + justify-content: space-between; + position: sticky; top: 0; width: 100%; + z-index: 2; } .layout-single-column .account__header__bar .avatar .account__avatar { @@ -2168,10 +2179,6 @@ a.status-card.compact .status-card__description { height: 157px; } - .layout-single-column .columns-area.columns-area--mobile { - top: 16px; - } - .layout-single-column .column > .scrollable { padding-bottom: 55px; } @@ -2190,11 +2197,6 @@ a.status-card.compact .status-card__description { padding-bottom: calc(3.5rem + calc(var(--gap-default) * 2)); } - .columns-area--mobile .column, - .columns-area--mobile .drawer { - margin-top: var(--gap-default); - } - /* Column items order */ .layout-single-column .navigation-panel .column-link, .layout-single-column .navigation-panel .list-panel,