Skip to content

Commit e6bf4e0

Browse files
committed
Resolve styling discrepancies introduced with ft-list-channel and ft-tooltip
1 parent 2384b72 commit e6bf4e0

File tree

3 files changed

+29
-7
lines changed

3 files changed

+29
-7
lines changed

src/renderer/components/ft-list-channel/ft-list-channel.scss

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
@use '../../scss-partials/ft-list-item';
22

3+
.infoAndSubscribe {
4+
display: flex;
5+
flex-flow: row wrap;
6+
justify-content: center;
7+
inline-size: 100%;
8+
}
9+
310
.ft-list-channel {
411
&.grid {
512
align-items: center;
613
text-align: center;
714

815
.infoAndSubscribe {
9-
display: flex;
10-
justify-content: center;
11-
inline-size: 100%;
1216
flex-flow: column wrap;
1317
align-items: center;
1418

@@ -24,9 +28,6 @@
2428

2529
&.list {
2630
.infoAndSubscribe {
27-
flex-flow: row wrap;
28-
justify-content: center;
29-
3031
.channelSubscribeButton {
3132
margin-block: auto;
3233
margin-inline: 7px;

src/renderer/components/ft-select/ft-select.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252

5353
/* Use custom arrow */
5454
.select .select-text {
55-
appearance:none;
55+
appearance: none;
5656
text-overflow: ellipsis;
5757
padding-inline-end: 1.5rem;
5858
}

src/renderer/components/ft-tooltip/ft-tooltip.css

+21
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,27 @@
6363
transform: translate(calc(-50% * var(--horizontal-directionality-coefficient)), 1em);
6464
}
6565

66+
.button:focus + .text,
67+
.button:hover + .text {
68+
opacity: 1;
69+
visibility: visible;
70+
}
71+
72+
.button:focus + .text.bottom,
73+
.button:hover + .text.bottom,
74+
.button:hover + .text.bottom-left,
75+
.button:focus + .text.top,
76+
.button:hover + .text.top {
77+
transform: translate(calc(-50% * var(--horizontal-directionality-coefficient)), 0);
78+
}
79+
80+
.button:focus + .text.left,
81+
.button:hover + .text.left,
82+
.button:focus + .text.right,
83+
.button:hover + .text.right {
84+
transform: translate(0, -50%);
85+
}
86+
6687
.text.allowNewlines {
6788
white-space: pre-wrap;
6889
text-align: start;

0 commit comments

Comments
 (0)