Theme: Border radius nit fixes (#111625)
* increase border radius on login box * increase command palette border radius * decrease TagBadge border radius * increase border radius for alerting homepage containers * increase border radius of EnterpriseAuthFeaturesCard * increase border radius on cloud migration containers * fix border-radius on edit alert rule page * fix overflow on notification templates page * add border radius to EmptyArea * add border radius to image preview in Carousel component * add border radius to PluginDetailsPanel * add border radius to licensechrome * add border radius to empty alerts state * apply container styles on top of default styles
This commit is contained in:
@@ -183,6 +183,7 @@ const getStyles = (theme: GrafanaTheme2) => ({
|
||||
flex: 1,
|
||||
}),
|
||||
imagePreview: css({
|
||||
borderRadius: theme.shape.radius.lg,
|
||||
maxWidth: '100%',
|
||||
maxHeight: '80vh',
|
||||
objectFit: 'contain',
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { css } from '@emotion/css';
|
||||
import { css, cx } from '@emotion/css';
|
||||
import type * as monacoType from 'monaco-editor/esm/vs/editor/editor.api';
|
||||
import { PureComponent } from 'react';
|
||||
|
||||
@@ -136,7 +136,7 @@ class UnthemedCodeEditor extends PureComponent<Props> {
|
||||
const value = this.props.value ?? '';
|
||||
const longText = value.length > 100;
|
||||
|
||||
const containerStyles = this.props.containerStyles ?? getStyles(theme).container;
|
||||
const containerStyles = cx(getStyles(theme).container, this.props.containerStyles);
|
||||
|
||||
const options: MonacoOptions = {
|
||||
wordWrap: wordWrap ? 'on' : 'off',
|
||||
@@ -203,6 +203,7 @@ const getStyles = (theme: GrafanaTheme2) => {
|
||||
container: css({
|
||||
borderRadius: theme.shape.radius.default,
|
||||
border: `1px solid ${theme.components.input.borderColor}`,
|
||||
overflow: 'hidden',
|
||||
}),
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user