From: Lemmus.org <137361180+lemmus-org@users.noreply.github.com> Date: Mon, 10 Jul 2023 14:33:58 +0000 (-0700) Subject: Add theme option for compact that respects browser default (#1870) X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/%22https:/nerdica.net/README.es.md?a=commitdiff_plain;h=6350f6857912aceb143882804d043ca40ca086a2;p=lemmy-ui.git Add theme option for compact that respects browser default (#1870) --- diff --git a/src/shared/components/app/theme.tsx b/src/shared/components/app/theme.tsx index 941eea2..93f6aed 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 f5d2568..25e02c8 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 => (