Skip to content

Commit

Permalink
Implement rounded thumbnail image styling
Browse files Browse the repository at this point in the history
This change adds the sleek rounded thumbnail look that one might call similar to that of another site. Also updates the outline to be rounded, and the watch progress bar to cover the now-shortened bottom side.
  • Loading branch information
kommunarr committed Aug 26, 2023
1 parent 3bfa370 commit 09a1526
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 9 deletions.
4 changes: 0 additions & 4 deletions src/renderer/components/ft-list-video/ft-list-video.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
@use '../../scss-partials/_ft-list-item';

.thumbnailLink:hover {
outline: 3px solid var(--side-nav-hover-color);
}
12 changes: 7 additions & 5 deletions src/renderer/components/ft-list-video/ft-list-video.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,13 @@
>
{{ $t("Video.Watched") }}
</div>
<div
v-if="watched"
class="watchedProgressBar"
:style="{width: progressPercentage + '%'}"
/>
<div class="watchedProgressBarContainer">
<div
v-if="watched"
class="watchedProgressBar"
:style="{width: progressPercentage + '%'}"
/>
</div>
</div>
<div class="info">
<router-link
Expand Down
14 changes: 14 additions & 0 deletions src/renderer/scss-partials/_ft-list-item.scss
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ $watched-transition-duration: 0.5s;
}

.thumbnailImage {
border-radius: 12px;

@include is-sidebar-item {
height: 75px;
}
Expand Down Expand Up @@ -152,6 +154,11 @@ $watched-transition-duration: 0.5s;
opacity: $thumbnail-overlay-opacity;
}

.watchedProgressBarContainer {
width: calc(100% - 24px);
margin: auto;
}

.watchedProgressBar {
align-self: flex-end;
background-color: var(--primary-color);
Expand Down Expand Up @@ -299,6 +306,13 @@ $watched-transition-duration: 0.5s;
}
}

.thumbnailImage {
border-radius: 12px;
&:hover {
box-shadow: 0 0 0 3px var(--side-nav-hover-color);
}
}

.videoWatched,
.live,
.upcoming {
Expand Down

0 comments on commit 09a1526

Please sign in to comment.