Skip to content

Commit bff3a2f

Browse files
authored
Mobile/tablet channel page & share button visual improvements (#4061)
* Implement fix to elements escaping container on Channel page at small widths * Show all Channel tabs on smaller viewport widths & reduce bulky gap * Update Channel page to not break at even lower sizes * Re-introduce channel button clipping fix * Implement updated share button styling * Fix issue with prompt box shrinking on small enough viewport sizes / overflow * Update share button to work at all sizes' * Fix pre-existing issue of Channel tabs overflowing on desktop view in some locales
1 parent d91f82f commit bff3a2f

File tree

3 files changed

+72
-5
lines changed

3 files changed

+72
-5
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
position: fixed;
33
inset-block-start: 0px;
44
inset-inline-start: 0px;
5-
inline-size: 100vw;
6-
block-size: 100vh;
5+
inline-size: 100%;
6+
block-size: 100%;
77
background-color: rgba(0, 0, 0, 0.7);
88
z-index: 10;
99
padding: 15px;
@@ -13,6 +13,10 @@
1313
justify-content: center;
1414
}
1515

16+
.promptCard {
17+
overflow-y: scroll;
18+
}
19+
1620
.promptCard.autosize {
1721
box-sizing: border-box;
1822
margin-block: 0;

src/renderer/components/ft-share-button/ft-share-button.scss

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,19 @@
1111
font-weight: bold;
1212
margin-block: 4px 8px;
1313
margin-inline: 0;
14+
display: flex;
15+
justify-content: center;
1416
}
1517

1618
.buttons {
1719
display: flex;
1820
flex-direction: column;
21+
max-inline-size: min-content;
22+
min-inline-size: 150px;
1923

2024
.action {
2125
padding: 6px;
26+
white-space: initial;
2227
}
2328
}
2429

@@ -55,8 +60,6 @@
5560
}
5661

5762
.invidious {
58-
display: flex;
59-
justify-content: center;
6063
letter-spacing: -0.4px;
6164

6265
.invidiousLogo {
@@ -85,3 +88,25 @@
8588
}
8689
}
8790
}
91+
92+
@media only screen and (max-width: 450px) {
93+
.shareLinks {
94+
grid-auto-flow: row;
95+
margin-inline: auto;
96+
justify-items: center;
97+
max-inline-size: max-content;
98+
99+
.header.invidious {
100+
margin-block-start: 20px;
101+
}
102+
103+
.buttons {
104+
max-inline-size: min-content;
105+
min-inline-size: 180px;
106+
}
107+
108+
.divider {
109+
display: none;
110+
}
111+
}
112+
}

src/renderer/views/Channel/Channel.css

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@
7171
justify-content: space-between;
7272
}
7373

74+
.subscribeButton {
75+
block-size: fit-content;
76+
}
77+
7478
.shareIcon {
7579
align-self: center;
7680
}
@@ -94,11 +98,14 @@
9498
gap: 32px;
9599
padding-block: .3em;
96100
padding-inline: 0;
101+
flex-direction: column;
102+
flex-wrap: nowrap;
97103
}
98104

99105
.tabs {
100106
display: flex;
101107
flex: 0 1 33%;
108+
flex-wrap: wrap;
102109
}
103110

104111
.tab {
@@ -187,6 +194,7 @@
187194
.channelInfoTabs {
188195
block-size: auto;
189196
flex-flow: column-reverse;
197+
gap: 0;
190198
}
191199

192200
.channelSearch {
@@ -195,9 +203,39 @@
195203
}
196204

197205
.tabs {
198-
overflow-x: scroll;
206+
flex: 1 1 0;
207+
flex-wrap: wrap;
199208
}
209+
200210
#communityPanel {
201211
margin-block-start: 1rem;
202212
}
203213
}
214+
215+
@media only screen and (max-width: 400px) {
216+
.channelInfo {
217+
justify-content: center;
218+
gap: 10px;
219+
}
220+
221+
.channelInfoActionsContainer {
222+
flex-direction: column-reverse;
223+
}
224+
225+
.thumbnailContainer {
226+
flex-direction: column;
227+
}
228+
229+
.thumbnailContainer, .channelInfoActionsContainer {
230+
flex-wrap: wrap;
231+
align-items: center;
232+
text-align: center;
233+
gap: 10px;
234+
}
235+
}
236+
237+
@media only screen and (max-width: 260px) {
238+
.channelDetails {
239+
max-inline-size: none;
240+
}
241+
}

0 commit comments

Comments
 (0)