Skip to content

Commit

Permalink
fix: resolve issue with compact mode not working in Kiwi Browser
Browse files Browse the repository at this point in the history
  • Loading branch information
Robot-Inventor committed Nov 30, 2024
1 parent 1a08e88 commit 37ba3f0
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions src/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,27 @@ sbs-message {
}

[data-sb-compact-mode] {
border-left: solid 0.3rem;
/*
* `!important` is required to work with Kiwi Browser.
* In Kiwi Browser and, likely, in Chrome's mobile layout, it is necessary to override the borders set by X on posts.
*/
border-left: solid 0.3rem !important;
}

[data-sb-compact-mode="green"] {
border-left-color: var(--sb-background-green);
/*
* `!important` is required to work with Kiwi Browser.
* In Kiwi Browser and, likely, in Chrome's mobile layout, it is necessary to override the borders set by X on posts.
*/
border-left-color: var(--sb-background-green) !important;
}

[data-sb-compact-mode="red"] {
border-left-color: var(--sb-background-red);
/*
* `!important` is required to work with Kiwi Browser.
* In Kiwi Browser and, likely, in Chrome's mobile layout, it is necessary to override the borders set by X on posts.
*/
border-left-color: var(--sb-background-red) !important;
}

[data-sb-translation] {
Expand Down

0 comments on commit 37ba3f0

Please sign in to comment.