From b90d66a846845c2e36f03d92a4b9938c6b5b41f6 Mon Sep 17 00:00:00 2001 From: Sodbileg Gansukh Date: Wed, 6 Mar 2024 16:48:13 +0800 Subject: [PATCH] Fixed various Unsplash design bugs (#19806) ref DES-167 - fixed visibility of Unsplash button in publication cover setting - fixed gallery image ratio - fixed search input border style - fixed icon fill color issue of the download button - fixed insert image alignment - fixed author thumbnail pixelation --- .../site/designAndBranding/BrandSettings.tsx | 2 +- .../src/unsplash/ui/UnsplashButton.tsx | 4 +-- .../src/unsplash/ui/UnsplashImage.tsx | 26 +++++++++---------- .../src/unsplash/ui/UnsplashSelector.tsx | 2 +- 4 files changed, 17 insertions(+), 17 deletions(-) diff --git a/apps/admin-x-settings/src/components/settings/site/designAndBranding/BrandSettings.tsx b/apps/admin-x-settings/src/components/settings/site/designAndBranding/BrandSettings.tsx index 3d83937dab..361e9fdcc7 100644 --- a/apps/admin-x-settings/src/components/settings/site/designAndBranding/BrandSettings.tsx +++ b/apps/admin-x-settings/src/components/settings/site/designAndBranding/BrandSettings.tsx @@ -129,7 +129,7 @@ const BrandSettings: React.FC<{ values: BrandSettingValues, updateSetting: (key: }) } } - unsplashButtonClassName='!top-1 !right-1' + unsplashButtonClassName='!top-1 !right-1 z-50' unsplashEnabled={unsplashEnabled} onDelete={() => updateSetting('cover_image', null)} onUpload={async (file) => { diff --git a/apps/admin-x-settings/src/unsplash/ui/UnsplashButton.tsx b/apps/admin-x-settings/src/unsplash/ui/UnsplashButton.tsx index 174e5df73c..3fb835663d 100644 --- a/apps/admin-x-settings/src/unsplash/ui/UnsplashButton.tsx +++ b/apps/admin-x-settings/src/unsplash/ui/UnsplashButton.tsx @@ -24,11 +24,11 @@ const UnsplashButton: React.FC = ({icon, label, ...props}) return ( e.stopPropagation()} {...props} > - {icon && Icon && } + {icon && Icon && } {label && {label}} ); diff --git a/apps/admin-x-settings/src/unsplash/ui/UnsplashImage.tsx b/apps/admin-x-settings/src/unsplash/ui/UnsplashImage.tsx index f4c36bae1d..824ba883b0 100644 --- a/apps/admin-x-settings/src/unsplash/ui/UnsplashImage.tsx +++ b/apps/admin-x-settings/src/unsplash/ui/UnsplashImage.tsx @@ -31,38 +31,38 @@ const UnsplashImage: FC = ({payload, srcUrl, links, likes, u }; return ( -
{alt}
-
+
- author + author
{user.name}
{ diff --git a/apps/admin-x-settings/src/unsplash/ui/UnsplashSelector.tsx b/apps/admin-x-settings/src/unsplash/ui/UnsplashSelector.tsx index 668c91f099..6873de96dc 100644 --- a/apps/admin-x-settings/src/unsplash/ui/UnsplashSelector.tsx +++ b/apps/admin-x-settings/src/unsplash/ui/UnsplashSelector.tsx @@ -29,7 +29,7 @@ const UnsplashSelector: FunctionComponent = ({closeModal,
- +
{children}