From 9ee5fd90d3e2a08a319cf92848218354449e31c6 Mon Sep 17 00:00:00 2001 From: kKaskak <117831817+kKaskak@users.noreply.github.com> Date: Tue, 10 Oct 2023 14:45:35 +0300 Subject: [PATCH] Revert "Revert "fixes after first senior review"" This reverts commit 379b35cd1c18efe103ef1a82cd09f4df88f496b9. --- .gitignore | 3 ++- src/App/styles.less | 1 + src/common/AddonDetailsModal/styles.less | 11 +++++++++ src/common/MetaPreview/MetaPreview.js | 22 +++++++++--------- src/common/MetaPreview/styles.less | 4 +++- src/common/ModalDialog/ModalDialog.js | 2 +- src/common/ModalDialog/styles.less | 23 ++++--------------- .../MetaDetails/StreamsList/Stream/Stream.js | 6 ++--- .../StreamsList/Stream/styles.less | 23 +++---------------- .../MetaDetails/StreamsList/StreamsList.js | 3 +-- .../MetaDetails/VideosList/Video/styles.less | 2 +- 11 files changed, 41 insertions(+), 59 deletions(-) diff --git a/.gitignore b/.gitignore index 71947782e..eddbdcc5a 100755 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ /yarn.lock /npm-debug.log .DS_Store -.prettierignore \ No newline at end of file +.prettierignore +bun.lockb \ No newline at end of file diff --git a/src/App/styles.less b/src/App/styles.less index f4454424c..889456d51 100644 --- a/src/App/styles.less +++ b/src/App/styles.less @@ -24,6 +24,7 @@ --color-twitter: #1DA1F2; --color-imdb: #f5c518; --color-placeholder: #60606080; + --color-released: #707070; --color-placeholder-text: @color-surface-50; --color-placeholder-background: @color-surface-dark5-20; --primary-background-color: rgba(12, 11, 17, 1); diff --git a/src/common/AddonDetailsModal/styles.less b/src/common/AddonDetailsModal/styles.less index 1d4fde635..d9189b665 100644 --- a/src/common/AddonDetailsModal/styles.less +++ b/src/common/AddonDetailsModal/styles.less @@ -30,4 +30,15 @@ color: var(--primary-foreground-color); } } + .uninstall-button { + background-color: rgba(72, 69, 114, 1); + + &:hover { + outline: var(--focus-outline-size) solid rgba(72, 69, 114, 1); + background-color: transparent; + } + &:focus { + outline-color: var(--primary-foreground-color); + } + } } \ No newline at end of file diff --git a/src/common/MetaPreview/MetaPreview.js b/src/common/MetaPreview/MetaPreview.js index c4a96fce5..db39fb534 100644 --- a/src/common/MetaPreview/MetaPreview.js +++ b/src/common/MetaPreview/MetaPreview.js @@ -195,6 +195,12 @@ const MetaPreview = ({ className, compact, name, logo, background, runtime, rele
+ { + typeof toggleInLibrary === 'function' && compact ? +
{inLibrary ? t('REMOVE_FROM_LIB') : t('ADD_TO_LIB')}
+ : + null + } { typeof toggleInLibrary === 'function' ? +
{ - typeof toggleInLibrary === 'function' && compact ? -
{inLibrary ? t('REMOVE_FROM_LIB') : t('ADD_TO_LIB')}
+ typeof trailerHref === 'string' && compact ? +
{t('WATCH_TRAILER')}
: null } -
-
{ typeof trailerHref === 'string' ? {t('WATCH_TRAILER')}
- : - null - }
{ typeof showHref === 'string' && compact ? 0 ?
{buttons.map(({ className, label, icon, props }, index) => ( -
- {`S${video?.season}E${video?.episode} ${(video?.title)?.toLowerCase()?.replace(/\b\w/g, (char) => char.toUpperCase())} -`} + {`S${video?.season}E${video?.episode} ${(video?.title)}`}
) diff --git a/src/routes/MetaDetails/VideosList/Video/styles.less b/src/routes/MetaDetails/VideosList/Video/styles.less index 0a7458508..8c86ff82b 100644 --- a/src/routes/MetaDetails/VideosList/Video/styles.less +++ b/src/routes/MetaDetails/VideosList/Video/styles.less @@ -84,7 +84,7 @@ font-weight: 500; white-space: nowrap; text-overflow: ellipsis; - color: #707070; + color: var(--color-released); opacity: 0.9; }