From 4777b16417b78c176bcc74311d6b0dc21c6f74a2 Mon Sep 17 00:00:00 2001 From: Roni Laukkarinen Date: Tue, 8 Oct 2024 22:18:32 +0300 Subject: [PATCH] Fixes to heart icon on servers that have numbers enabled --- CHANGELOG.md | 4 ++++ layout-multiple-columns.css | 2 +- layout-single-column.css | 25 ++++++++++++++++++++++--- package.json | 2 +- 4 files changed, 28 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2fbda89..dcffd29 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +### 2.0.1: 2024-10-08 + +* Fixes to heart icon on servers that have numbers enabled + ### 2.0.0: 2024-10-08 * Fixes to heart animation diff --git a/layout-multiple-columns.css b/layout-multiple-columns.css index 4ed6299..76d56e3 100644 --- a/layout-multiple-columns.css +++ b/layout-multiple-columns.css @@ -1,5 +1,5 @@ /* Mastodon Bird UI by @rolle@mementomori.social - 2.0.0 */ + 2.0.1 */ /* CSS variables */ :root { diff --git a/layout-single-column.css b/layout-single-column.css index bbaa7e4..49acc99 100644 --- a/layout-single-column.css +++ b/layout-single-column.css @@ -1,5 +1,5 @@ /* Mastodon Bird UI by @rolle@mementomori.social - 2.0.0 */ + 2.0.1 */ /* CSS variables */ :root { @@ -4733,13 +4733,32 @@ div[tabindex="-1"] + div[tabindex="-1"] > .status__wrapper > .status-reply.statu /* stylelint-disable-next-line */ .layout-single-column.no-reduce-motion .status .icon-button.star-icon.activate .icon-star { - left: -28px; + left: -37px; +} + +/* If number enabled in core */ +/* stylelint-disable-next-line */ +/* If number enabled in core */ +/* stylelint-disable-next-line */ +.layout-single-column.no-reduce-motion .status .icon-button.icon-button--with-counter.star-icon .icon-star { + left: 0; margin-top: 1px; + position: absolute; } /* stylelint-disable-next-line */ .layout-single-column.no-reduce-motion .status .icon-button.icon-button--with-counter.star-icon.activate .icon-star { - left: -37px; + left: -40px; + margin-top: -1px; + position: absolute; +} + +.star-icon.icon-button--with-counter .icon-button__counter { + margin-left: 20px; +} + +.animated-number { + z-index: 99; } /* stylelint-disable-next-line */ diff --git a/package.json b/package.json index 27c2f43..f3ab3c9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mastodon-bird-ui", - "version": "2.0.0", + "version": "2.0.1", "description": "", "main": "index.js", "scripts": {