From 6c2bfd603f8ffd43500ac7f774ec05bc1714aa39 Mon Sep 17 00:00:00 2001 From: John SJ Anderson Date: Tue, 19 Nov 2024 16:27:47 -0800 Subject: [PATCH] Make icons change layout too [#1911] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This leads to a slight styling change, but is probably Close Enoughâ„¢ --- src/components/controls/panel-layout.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/controls/panel-layout.js b/src/components/controls/panel-layout.js index c2cf1ead5..4d7444d6d 100644 --- a/src/components/controls/panel-layout.js +++ b/src/components/controls/panel-layout.js @@ -10,7 +10,8 @@ import { SidebarButton } from "./styles"; const ButtonText = styled.span` margin: 5px; position: relative; - top: -1px; + left: 4px; + top: -6px; `; const PanelsFullIcon = withTheme(icons.PanelsFull); @@ -27,7 +28,6 @@ class PanelLayouts extends React.Component { return (
- { @@ -35,10 +35,10 @@ class PanelLayouts extends React.Component { this.props.dispatch({ type: CHANGE_PANEL_LAYOUT, data: "full" }); }} > + {t("sidebar:full")} - { @@ -46,9 +46,9 @@ class PanelLayouts extends React.Component { this.props.dispatch({ type: CHANGE_PANEL_LAYOUT, data: "grid" }); }} > + {t("sidebar:grid")} -
); }