From 7e7773363305fe1def1a5471c862e63012cd9e62 Mon Sep 17 00:00:00 2001 From: cballevre Date: Thu, 29 Feb 2024 16:24:08 +0100 Subject: [PATCH] fix: Spacing around logo in flagship app The CSS preprocessor put an underscore before the double hyphen, making the classes obsolete. I followed the BEM convention and modified it to have a distinct class --- src/components/Apps/AppItem.jsx | 2 +- src/components/Apps/AppNavButtons.jsx | 8 ++++++-- src/components/Apps/ButtonCozyHome.jsx | 2 +- src/styles/apps.css | 17 ++++++----------- 4 files changed, 14 insertions(+), 15 deletions(-) diff --git a/src/components/Apps/AppItem.jsx b/src/components/Apps/AppItem.jsx index 6611fc0b..9fe76802 100644 --- a/src/components/Apps/AppItem.jsx +++ b/src/components/Apps/AppItem.jsx @@ -44,7 +44,7 @@ export const AppItem = ({ onAppSwitch, useHomeIcon, app, isInvertedTheme }) => { return (
  • +
    @@ -50,7 +50,11 @@ const AppNavButton = ({ const homeHref = !isPublic && homeApp && homeApp.href return ( -
    +
    {!isHomeApp && } diff --git a/src/components/Apps/ButtonCozyHome.jsx b/src/components/Apps/ButtonCozyHome.jsx index a9b48d1b..7722c332 100644 --- a/src/components/Apps/ButtonCozyHome.jsx +++ b/src/components/Apps/ButtonCozyHome.jsx @@ -16,7 +16,7 @@ export const ButtonCozyHome = ({ homeHref, isInvertedTheme }) => { onClick={() => { webviewIntent.call('backToHome') }} - className="coz-nav-apps-btns-home --is-flagship" + className="coz-nav-apps-btns-home coz-nav-apps-btns-home--is-flagship" > span { - display: flex; - justify-content: flex-start; -} - [role=banner] [role=menuitem].coz-apps-home-btn svg { width: 1rem; height: 1rem; @@ -246,7 +241,7 @@ width: 7rem; } -[role=banner] .coz-nav-apps-btns.--loading { +[role=banner] .coz-nav-apps-btns--loading { width: 12rem; }