From 940f91e4e15187528b5e925e495ec561f4f54791 Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Thu, 9 Jan 2025 12:33:42 +0530 Subject: [PATCH] Set h3 default to medium In couple of places this changes the look, but this was intentional. --- web/apps/accounts/src/pages/passkeys/verify.tsx | 8 ++++---- web/apps/auth/src/pages/auth.tsx | 14 ++------------ .../Collections/AllCollections/index.tsx | 2 +- .../components/Collections/CollectionShare.tsx | 5 +---- web/apps/photos/src/components/Export.tsx | 4 +--- .../photos/src/components/GalleryEmptyState.tsx | 1 - .../src/components/Sidebar/SubscriptionCard.tsx | 16 ++++------------ web/apps/photos/src/components/Sidebar/index.tsx | 4 +--- web/apps/photos/src/components/WatchFolder.tsx | 6 ++---- web/packages/accounts/components/RecoveryKey.tsx | 4 +--- web/packages/base/components/Titlebar.tsx | 4 +--- .../base/components/mui/SidebarDrawer.tsx | 4 +--- web/packages/base/components/utils/theme.ts | 2 +- .../new/photos/components/CollectionSelector.tsx | 4 +--- .../new/photos/components/PlanSelector.tsx | 11 ++++++----- .../photos/components/gallery/PeopleHeader.tsx | 4 +--- 16 files changed, 28 insertions(+), 65 deletions(-) diff --git a/web/apps/accounts/src/pages/passkeys/verify.tsx b/web/apps/accounts/src/pages/passkeys/verify.tsx index 84b509b04d..b9059ab3cc 100644 --- a/web/apps/accounts/src/pages/passkeys/verify.tsx +++ b/web/apps/accounts/src/pages/passkeys/verify.tsx @@ -316,7 +316,7 @@ const Failed: React.FC = ({ message }) => { return ( - {t("passkey_login_failed")} + {t("passkey_login_failed")} {message} ); @@ -402,7 +402,7 @@ const RetriableFailed: React.FC = ({ return ( - {t("passkey_login_failed")} + {t("passkey_login_failed")} {duringSignChallenge ? t("passkey_login_credential_hint") @@ -469,7 +469,7 @@ const RedirectingWeb: React.FC = () => { return ( - {t("passkey_verified")} + {t("passkey_verified")} {t("redirecting_back_to_app")} @@ -486,7 +486,7 @@ const RedirectingApp: React.FC = ({ onRetry }) => { return ( - {t("passkey_verified")} + {t("passkey_verified")} {t("redirecting_back_to_app")} diff --git a/web/apps/auth/src/pages/auth.tsx b/web/apps/auth/src/pages/auth.tsx index 647f1ed448..6765e544c6 100644 --- a/web/apps/auth/src/pages/auth.tsx +++ b/web/apps/auth/src/pages/auth.tsx @@ -255,21 +255,11 @@ const OTPDisplay: React.FC = ({ code, otp, nextOTP }) => { {code.issuer} {code.account ?? ""} - + {otp} diff --git a/web/apps/photos/src/components/Collections/AllCollections/index.tsx b/web/apps/photos/src/components/Collections/AllCollections/index.tsx index 4a199dc576..7960117bbc 100644 --- a/web/apps/photos/src/components/Collections/AllCollections/index.tsx +++ b/web/apps/photos/src/components/Collections/AllCollections/index.tsx @@ -108,7 +108,7 @@ const AllCollectionsHeader = ({ - + {isInHiddenSection ? t("all_hidden_albums") : t("all_albums")} diff --git a/web/apps/photos/src/components/Collections/CollectionShare.tsx b/web/apps/photos/src/components/Collections/CollectionShare.tsx index 4f40cb1a22..210fa01624 100644 --- a/web/apps/photos/src/components/Collections/CollectionShare.tsx +++ b/web/apps/photos/src/components/Collections/CollectionShare.tsx @@ -1891,10 +1891,7 @@ function PublicLinkSetPassword({ fullWidth > - + {t("password_lock")} = ({ return ( - - {t("export_data")} - + {t("export_data")} diff --git a/web/apps/photos/src/components/GalleryEmptyState.tsx b/web/apps/photos/src/components/GalleryEmptyState.tsx index 93ab8805f1..e8b4c6bae6 100644 --- a/web/apps/photos/src/components/GalleryEmptyState.tsx +++ b/web/apps/photos/src/components/GalleryEmptyState.tsx @@ -21,7 +21,6 @@ export default function GalleryEmptyState({ openUploader }) { color: "text.muted", userSelect: "none", marginBlockEnd: 1, - svg: { color: "text.base", verticalAlign: "middle", diff --git a/web/apps/photos/src/components/Sidebar/SubscriptionCard.tsx b/web/apps/photos/src/components/Sidebar/SubscriptionCard.tsx index d0db2da6cf..78463b389a 100644 --- a/web/apps/photos/src/components/Sidebar/SubscriptionCard.tsx +++ b/web/apps/photos/src/components/Sidebar/SubscriptionCard.tsx @@ -149,29 +149,21 @@ const StorageSection: React.FC = ({ usage, storage }) => { {t("storage")} - + {`${formattedStorageByteSize(usage, { round: true })} ${t( "of", )} ${formattedStorageByteSize(storage)} ${t("used")}`} - + - + {`${bytesInGB(usage)} / ${bytesInGB(storage)} ${t("storage_unit.gb")} ${t("used")}`} - + ); }; -const StorageSectionSpan: React.FC = ({ - children, -}) => ( - - {children} - -); - interface IndividualUsageSectionProps { usage: number; fileCount: number; diff --git a/web/apps/photos/src/components/Sidebar/index.tsx b/web/apps/photos/src/components/Sidebar/index.tsx index 5979cd8c71..68f1c27fce 100644 --- a/web/apps/photos/src/components/Sidebar/index.tsx +++ b/web/apps/photos/src/components/Sidebar/index.tsx @@ -349,9 +349,7 @@ function MemberSubscriptionManage({ open, userDetails, onClose }) { - - {t("subscription")} - + {t("subscription")} {t("family_plan")} diff --git a/web/apps/photos/src/components/WatchFolder.tsx b/web/apps/photos/src/components/WatchFolder.tsx index e12cc59fdf..7d24fac833 100644 --- a/web/apps/photos/src/components/WatchFolder.tsx +++ b/web/apps/photos/src/components/WatchFolder.tsx @@ -120,7 +120,7 @@ export const WatchFolder: React.FC = ({ PaperProps={{ sx: { height: "448px", maxWidth: "414px" } }} > - + {t("watched_folders")} @@ -183,9 +183,7 @@ const NoWatches: React.FC = () => { return ( - - {t("no_folders_added")} - + {t("no_folders_added")} = ({ fullWidth > - - {t("recovery_key")} - + {t("recovery_key")} diff --git a/web/packages/base/components/Titlebar.tsx b/web/packages/base/components/Titlebar.tsx index 7088b37391..3e0462d30c 100644 --- a/web/packages/base/components/Titlebar.tsx +++ b/web/packages/base/components/Titlebar.tsx @@ -46,9 +46,7 @@ export const Titlebar: React.FC = ({ - - {title} - + {title} = ({ - - {title} - + {title} = ({ PaperProps={{ sx: { maxWidth: "490px" } }} > - - {titleForAction(action)} - + {titleForAction(action)} diff --git a/web/packages/new/photos/components/PlanSelector.tsx b/web/packages/new/photos/components/PlanSelector.tsx index 50b4a974e1..93a60dde87 100644 --- a/web/packages/new/photos/components/PlanSelector.tsx +++ b/web/packages/new/photos/components/PlanSelector.tsx @@ -309,9 +309,7 @@ const FreeSubscriptionPlanSelectorCard: React.FC< children, }) => ( <> - - {t("choose_plan")} - + {t("choose_plan")} @@ -365,7 +363,7 @@ const PaidSubscriptionPlanSelectorCard: React.FC< - + {t("subscription")} @@ -538,7 +536,10 @@ const PlanRow: React.FC = ({ plan, onPlanSelect, disabled }) => { {bytesInGB(plan.storage)} - + {t("storage_unit.gb")} diff --git a/web/packages/new/photos/components/gallery/PeopleHeader.tsx b/web/packages/new/photos/components/gallery/PeopleHeader.tsx index e3f1027b3a..b72055997a 100644 --- a/web/packages/new/photos/components/gallery/PeopleHeader.tsx +++ b/web/packages/new/photos/components/gallery/PeopleHeader.tsx @@ -356,9 +356,7 @@ const AddPersonDialog: React.FC = ({ PaperProps={{ sx: { maxWidth: "490px" } }} > - - {t("add_name")} - + {t("add_name")}