Chore/Nit: Fix minor alignment issue in panel editor (#40232)
This commit is contained in:
@@ -173,6 +173,7 @@ const getStyles = (theme: GrafanaTheme2) => ({
|
|||||||
padding: ${theme.spacing(1)};
|
padding: ${theme.spacing(1)};
|
||||||
background: ${theme.colors.background.primary};
|
background: ${theme.colors.background.primary};
|
||||||
border: 1px solid ${theme.components.panel.borderColor};
|
border: 1px solid ${theme.components.panel.borderColor};
|
||||||
|
border-top-left-radius: ${theme.shape.borderRadius(1.5)};
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
`,
|
`,
|
||||||
closeButton: css`
|
closeButton: css`
|
||||||
|
|||||||
@@ -507,7 +507,6 @@ export const getStyles = stylesFactory((theme: GrafanaTheme, props: Props) => {
|
|||||||
min-height: 0;
|
min-height: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding-left: ${paneSpacing};
|
padding-left: ${paneSpacing};
|
||||||
padding-right: 2px;
|
|
||||||
`,
|
`,
|
||||||
tabsWrapper: css`
|
tabsWrapper: css`
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ export const PanelEditorTabs: FC<PanelEditorTabsProps> = React.memo(({ panel, da
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={styles.wrapper}>
|
<div className={styles.wrapper}>
|
||||||
<TabsBar className={styles.tabBar}>
|
<TabsBar className={styles.tabBar} hideBorder>
|
||||||
{tabs.map((tab) => {
|
{tabs.map((tab) => {
|
||||||
if (config.unifiedAlertingEnabled && tab.id === PanelEditorTabId.Alert) {
|
if (config.unifiedAlertingEnabled && tab.id === PanelEditorTabId.Alert) {
|
||||||
return (
|
return (
|
||||||
@@ -107,7 +107,10 @@ const getStyles = (theme: GrafanaTheme2) => {
|
|||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
background: ${theme.colors.background.primary};
|
background: ${theme.colors.background.primary};
|
||||||
border-right: 1px solid ${theme.components.panel.borderColor};
|
border: 1px solid ${theme.components.panel.borderColor};
|
||||||
|
border-left: none;
|
||||||
|
border-bottom: none;
|
||||||
|
border-top-right-radius: ${theme.shape.borderRadius(1.5)};
|
||||||
`,
|
`,
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user