Skip to content

Commit 75ce5b6

Browse files
fix: resolve issue with compact mode not working in Kiwi Browser (#1201)
1 parent 4c82088 commit 75ce5b6

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

src/css/style.css

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,27 @@ sbs-message {
2424
}
2525

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

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

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

3850
[data-sb-translation] {

0 commit comments

Comments
 (0)