Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/renderer/components/ChannelHome/ChannelHome.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
.shelfTitle {
font-size: 24px;
cursor: pointer;
overflow-wrap: break-word;

/* Prevents overflow for long values */
max-inline-size: 100%;
overflow-wrap: anywhere;
}

.shelfTitle::marker {
Expand Down Expand Up @@ -37,4 +40,8 @@
.shelfSubtitle {
font-style: italic;
color: var(--tertiary-text-color);

/* Prevents overflow for long values */
max-inline-size: 100%;
overflow-wrap: anywhere;
}
14 changes: 12 additions & 2 deletions src/renderer/components/PlaylistInfo/PlaylistInfo.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,18 @@

.playlistTitle {
margin-block-end: 0.1em;
overflow-wrap: break-word;

/* Prevents overflow for long values */
overflow-wrap: anywhere;

@media only screen and (width <= 850px) {
// margin-inline-in routerView = 8px x2 = 16px
// For unknown reason class `routerView` is in 2 containers
// padding for `playlistInfo` is 10px x2 = 20px
// Also scrollbar got unknown width so using 95vw instead of 100vw
max-inline-size: calc(95vw - 32px - 20px);
text-overflow: ellipsis;
}
}

.playlistDescription {
Expand Down Expand Up @@ -100,7 +111,6 @@
.playlistDescription {
overflow-x: hidden;
text-align: center;
white-space: nowrap;
text-overflow: ellipsis;
max-inline-size: 750px;
inline-size: 100%;
Expand Down
11 changes: 6 additions & 5 deletions src/renderer/views/Playlist/Playlist.scss
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,13 @@
}

&.list {
gap: 1em;

.playlistInfoContainer {
background-color: var(--card-bg-color);
block-size: calc(100vh - 132px);
inline-size: 30%;
inset-block-start: 96px;
margin-inline-end: 1em;
position: sticky;

.playlistInfo {
Expand All @@ -85,10 +86,6 @@
padding: 10px;
}
}

.playlistPage {
inline-size: 85vw;
}
}


Expand Down Expand Up @@ -143,12 +140,16 @@
flex-direction: column;

&.list {
gap: 0;

.playlistInfoContainer {
box-sizing: border-box;
position: relative;
inset-block-start: 0;
block-size: auto;
inline-size: 100%;
// Reset margin
margin-inline-end: 0;
}

.playlistItemsCard {
Expand Down