ShareModal: Responsive tabs and Public Dashboards modal fixed (#66805)

This commit is contained in:
Juan Cabanas
2023-04-28 13:37:11 -03:00
committed by GitHub
parent 836fef6785
commit e88e50efe4
3 changed files with 24 additions and 22 deletions

View File

@@ -150,7 +150,7 @@ const getStyles = (theme: GrafanaTheme2) => {
padding: 0;
display: flex;
flex-direction: column;
flex-grow: 1;
flex: 1;
min-height: 0;
background: ${theme.colors.background.primary};
border: 1px solid ${theme.components.panel.borderColor};

View File

@@ -1,6 +1,7 @@
import { css } from '@emotion/css';
import React from 'react';
import { useForm } from 'react-hook-form';
import { useWindowSize } from 'react-use';
import { GrafanaTheme2, SelectableValue } from '@grafana/data/src';
import { selectors as e2eSelectors } from '@grafana/e2e-selectors/src';
@@ -107,6 +108,7 @@ const EmailList = ({
};
export const EmailSharingConfiguration = () => {
const { width } = useWindowSize();
const styles = useStyles2(getStyles);
const dashboardState = useSelector((store) => store.dashboard);
const dashboard = dashboardState.getModel()!;
@@ -161,6 +163,7 @@ export const EmailSharingConfiguration = () => {
return (
<RadioButtonGroup
{...rest}
size={width < 480 ? 'sm' : 'md'}
options={options}
onChange={(shareType: PublicDashboardShareType) => {
reportInteraction('grafana_dashboards_public_share_type_clicked', {