From c67e44385ca39328e905691aa7733d3877cdc503 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nuno=20G=C3=B3is?= Date: Tue, 22 Nov 2022 16:04:01 +0000 Subject: [PATCH] misc fixes related to loading, font-size, alignment (#2504) https://linear.app/unleash/issue/2-423/update-feature-toggle-overview-sidepanel --- .../FeatureOverviewSidePanelDetails.tsx | 2 +- .../FeatureOverviewSidePanelEnvironmentSwitch.tsx | 1 + .../FeatureOverviewSidePanelEnvironmentSwitches.tsx | 4 ++-- .../FeatureOverviewSidePanelTags.tsx | 1 + 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewSidePanel/FeatureOverviewSidePanelDetails/FeatureOverviewSidePanelDetails.tsx b/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewSidePanel/FeatureOverviewSidePanelDetails/FeatureOverviewSidePanelDetails.tsx index 74000bf7e0..e8cde78864 100644 --- a/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewSidePanel/FeatureOverviewSidePanelDetails/FeatureOverviewSidePanelDetails.tsx +++ b/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewSidePanel/FeatureOverviewSidePanelDetails/FeatureOverviewSidePanelDetails.tsx @@ -30,7 +30,7 @@ export const FeatureOverviewSidePanelDetails = ({ return ( {header} -
+
Created at: {formatDateYMD( diff --git a/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewSidePanel/FeatureOverviewSidePanelEnvironmentSwitches/FeatureOverviewSidePanelEnvironmentSwitch/FeatureOverviewSidePanelEnvironmentSwitch.tsx b/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewSidePanel/FeatureOverviewSidePanelEnvironmentSwitches/FeatureOverviewSidePanelEnvironmentSwitch/FeatureOverviewSidePanelEnvironmentSwitch.tsx index 8ba0435d6a..8f4418a66c 100644 --- a/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewSidePanel/FeatureOverviewSidePanelEnvironmentSwitches/FeatureOverviewSidePanelEnvironmentSwitch/FeatureOverviewSidePanelEnvironmentSwitch.tsx +++ b/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewSidePanel/FeatureOverviewSidePanelEnvironmentSwitches/FeatureOverviewSidePanelEnvironmentSwitch/FeatureOverviewSidePanelEnvironmentSwitch.tsx @@ -15,6 +15,7 @@ import { styled } from '@mui/material'; import StringTruncator from 'component/common/StringTruncator/StringTruncator'; const StyledContainer = styled('div')(({ theme }) => ({ + marginLeft: theme.spacing(-1.5), '&:not(:last-of-type)': { marginBottom: theme.spacing(2), }, diff --git a/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewSidePanel/FeatureOverviewSidePanelEnvironmentSwitches/FeatureOverviewSidePanelEnvironmentSwitches.tsx b/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewSidePanel/FeatureOverviewSidePanelEnvironmentSwitches/FeatureOverviewSidePanelEnvironmentSwitches.tsx index d08fcc7cc3..a52c1fad59 100644 --- a/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewSidePanel/FeatureOverviewSidePanelEnvironmentSwitches/FeatureOverviewSidePanelEnvironmentSwitches.tsx +++ b/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewSidePanel/FeatureOverviewSidePanelEnvironmentSwitches/FeatureOverviewSidePanelEnvironmentSwitches.tsx @@ -15,11 +15,11 @@ const StyledSwitchLabel = styled('div')(() => ({ })); const StyledLabel = styled('p')(({ theme }) => ({ - fontSize: theme.fontSizes.smallBody, + fontSize: theme.fontSizes.bodySize, })); const StyledSubLabel = styled('p')(({ theme }) => ({ - fontSize: theme.fontSizes.smallerBody, + fontSize: theme.fontSizes.smallBody, color: theme.palette.text.secondary, })); diff --git a/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewSidePanel/FeatureOverviewSidePanelTags/FeatureOverviewSidePanelTags.tsx b/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewSidePanel/FeatureOverviewSidePanelTags/FeatureOverviewSidePanelTags.tsx index 12f5e51e83..8c0123ce16 100644 --- a/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewSidePanel/FeatureOverviewSidePanelTags/FeatureOverviewSidePanelTags.tsx +++ b/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewSidePanel/FeatureOverviewSidePanelTags/FeatureOverviewSidePanelTags.tsx @@ -113,6 +113,7 @@ export const FeatureOverviewSidePanelTags = ({ show={} /> } onClick={() => setOpenTagDialog(true)}