Skip to content

Commit

Permalink
Fix regression with wrong alignment of the bell icon when activated
Browse files Browse the repository at this point in the history
  • Loading branch information
ronilaukkarinen committed Oct 29, 2023
1 parent ebf37e5 commit 3ae10de
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 11 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
### 1.8.0rc3: 2023-10-09
### 1.8.0: 2023-10-29

* Improve button border colors in ultra accessible theme
* Do not animate when prefers-reduced-motion is set to reduce, Fixes #95
* Fix profile button icon not horizontally centered
* Fix regression with icon button aligning when not focused
* Fix regression with wrong alignment of the bell icon when activated

### 1.7.9: 2023-10-04

Expand Down
8 changes: 5 additions & 3 deletions layout-multiple-columns.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Mastodon Bird UI by @[email protected]
1.8.0rc4 */
1.8.0 */

/* CSS variables */
:root {
Expand Down Expand Up @@ -2558,6 +2558,7 @@ body.embed .button.logo-button,

/* stylelint-disable-next-line */
.layout-multiple-columns .account__header__tabs__buttons .icon-button {
align-items: center;
border-bottom-left-radius: 9999px;
border-bottom-right-radius: 9999px;
border-top-left-radius: 9999px;
Expand All @@ -2566,8 +2567,9 @@ body.embed .button.logo-button,
justify-content: center;
}

.layout-multiple-columns .account__header__tabs__buttons .icon-button:not(.active) {
align-items: center;
/* Exception for close icon that seem to align wrongly when active */
.layout-multiple-columns .account__header__tabs__buttons .icon-button .fa.fa-close {
align-self: start;
}

body.embed .button.logo-button:hover,
Expand Down
23 changes: 17 additions & 6 deletions layout-single-column.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Mastodon Bird UI by @[email protected]
1.8.0rc4 */
1.8.0 */

/* CSS variables */
:root {
Expand Down Expand Up @@ -2574,6 +2574,7 @@ body.embed .button.logo-button,

/* stylelint-disable-next-line */
.layout-single-column .account__header__tabs__buttons .icon-button {
align-items: center;
border-bottom-left-radius: 9999px;
border-bottom-right-radius: 9999px;
border-top-left-radius: 9999px;
Expand All @@ -2582,8 +2583,9 @@ body.embed .button.logo-button,
justify-content: center;
}

.layout-single-column .account__header__tabs__buttons .icon-button:not(.active) {
align-items: center;
/* Exception for close icon that seem to align wrongly when active */
.layout-single-column .account__header__tabs__buttons .icon-button .fa.fa-close {
align-self: start;
}

body.embed .button.logo-button:hover,
Expand Down Expand Up @@ -3088,10 +3090,19 @@ body.embed .button.logo-button:hover,
content: var(--icon-home-notification-active);
}

.layout-single-column .column-link .fa-home::before {
content: var(--icon-home);
/* Replace the original icon (after 4.3.0) */
.layout-single-column .column-link .icon-home path {
display: none;
}

.layout-single-column .column-link .icon-home {
background-image: var(--icon-home);
background-repeat: no-repeat;
background-size: 24px 24px;
display: block;
height: 26px;
position: relative;
top: 1px;
width: 26px;
}

/* Federated icon */
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mastodon-bird-ui",
"version": "1.8.0rc4",
"version": "1.8.0",
"description": "",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 3ae10de

Please sign in to comment.