From 46124b6b892709ae66421a66bc7192cc3bcacfbc Mon Sep 17 00:00:00 2001 From: Sai Deepesh Date: Fri, 18 Dec 2020 09:51:17 +0530 Subject: [PATCH] enhancing watched videos appearnce (#806) --- package-lock.json | 4 +-- .../components/ft-auto-grid/ft-auto-grid.sass | 5 ++- .../ft-icon-button/ft-icon-button.sass | 7 ++++ .../ft-icon-button/ft-icon-button.vue | 4 +-- .../ft-list-video/ft-list-video.vue | 6 ++-- src/renderer/sass-partials/_ft-list-item.sass | 35 ++++++++++++++++--- 6 files changed, 46 insertions(+), 15 deletions(-) diff --git a/package-lock.json b/package-lock.json index 14a20d14..81237b64 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8982,7 +8982,7 @@ }, "humanize-plus": { "version": "1.8.2", - "resolved": "https://registry.npmjs.org/humanize-plus/-/humanize-plus-1.8.2.tgz", + "resolved": "http://registry.npmjs.org/humanize-plus/-/humanize-plus-1.8.2.tgz", "integrity": "sha1-pls0RZrWNnrbs3B6gqPJ+RYWcDA=", "dev": true }, @@ -14309,7 +14309,7 @@ }, "safe-regex": { "version": "1.1.0", - "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz", + "resolved": "http://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz", "integrity": "sha1-QKNmnzsHfR6UPURinhV91IAjvy4=", "dev": true, "requires": { diff --git a/src/renderer/components/ft-auto-grid/ft-auto-grid.sass b/src/renderer/components/ft-auto-grid/ft-auto-grid.sass index eb71df3e..9a1b32e4 100644 --- a/src/renderer/components/ft-auto-grid/ft-auto-grid.sass +++ b/src/renderer/components/ft-auto-grid/ft-auto-grid.sass @@ -1,10 +1,9 @@ .ft-auto-grid &.grid display: grid - grid-template-columns: repeat(auto-fill, 240px) + grid-template-columns: repeat(auto-fill, 262px) justify-content: space-evenly - grid-gap: 5px &.list display: grid - grid-gap: 16px + grid-gap: 4px diff --git a/src/renderer/components/ft-icon-button/ft-icon-button.sass b/src/renderer/components/ft-icon-button/ft-icon-button.sass index a0425509..032d8a55 100644 --- a/src/renderer/components/ft-icon-button/ft-icon-button.sass +++ b/src/renderer/components/ft-icon-button/ft-icon-button.sass @@ -25,6 +25,13 @@ &:active background-color: var(--side-nav-active-color) + &.base-no-default + &:hover + background-color: var(--side-nav-hover-color) + + &:active + background-color: var(--side-nav-active-color) + &.primary background-color: var(--primary-color) color: var(--text-with-main-color) diff --git a/src/renderer/components/ft-icon-button/ft-icon-button.vue b/src/renderer/components/ft-icon-button/ft-icon-button.vue index ac068c08..d1abbda0 100644 --- a/src/renderer/components/ft-icon-button/ft-icon-button.vue +++ b/src/renderer/components/ft-icon-button/ft-icon-button.vue @@ -5,9 +5,7 @@ :title="title" :icon="icon" :class="{ - base: theme === 'base', - primary: theme === 'primary', - secondary: theme === 'secondary', + [theme]: true, shadow: useShadow }" :style="{ diff --git a/src/renderer/components/ft-list-video/ft-list-video.vue b/src/renderer/components/ft-list-video/ft-list-video.vue index fa8588a0..554ba1f3 100644 --- a/src/renderer/components/ft-list-video/ft-list-video.vue +++ b/src/renderer/components/ft-list-video/ft-list-video.vue @@ -4,7 +4,8 @@ :class="{ list: (listType === 'list' || forceListType === 'list') && forceListType !== 'grid', grid: (listType === 'grid' || forceListType === 'list') && forceListType !== 'list', - [appearance]: true + [appearance]: true, + watched: watched }" >