From 2a9a6f72ff184924c53148e257840c934356633d Mon Sep 17 00:00:00 2001 From: "Lemmus.org" <137361180+lemmus-org@users.noreply.github.com> Date: Mon, 10 Jul 2023 07:33:58 -0700 Subject: [PATCH] Add theme option for compact that respects browser default (#1870) --- src/shared/components/app/theme.tsx | 24 ++++++++++++++++++++++- src/shared/components/home/site-form.tsx | 3 +++ src/shared/components/person/settings.tsx | 6 ++++++ 3 files changed, 32 insertions(+), 1 deletion(-) diff --git a/src/shared/components/app/theme.tsx b/src/shared/components/app/theme.tsx index 941eea2c..93f6aed3 100644 --- a/src/shared/components/app/theme.tsx +++ b/src/shared/components/app/theme.tsx @@ -21,7 +21,10 @@ export class Theme extends Component { /> ); - } else if (this.props.defaultTheme != "browser") { + } else if ( + this.props.defaultTheme != "browser" && + this.props.defaultTheme != "browser-compact" + ) { return ( { /> ); + } else if (this.props.defaultTheme == "browser-compact") { + return ( + + + + + ); } else { return ( diff --git a/src/shared/components/home/site-form.tsx b/src/shared/components/home/site-form.tsx index f5d25688..25e02c86 100644 --- a/src/shared/components/home/site-form.tsx +++ b/src/shared/components/home/site-form.tsx @@ -411,6 +411,9 @@ export class SiteForm extends Component { + {this.props.themeList?.map(theme => (