chore: Implement global header in Dashboard (#20146)

* Add gloal header

* Reimplement report dropdown

* Update unit tests

* Clean up

* Clean up

* Remove unused import

* Update Cypress

* Update Cypress save dashboard test

* Fix spacing
This commit is contained in:
Geido
2022-05-25 12:56:19 +02:00
committed by GitHub
parent 40abb44ba1
commit 3a4176a8d5
22 changed files with 563 additions and 449 deletions

View File

@@ -50,7 +50,21 @@ const headerStyles = (theme: SupersetTheme) => css`
align-items: center;
flex-wrap: nowrap;
justify-content: space-between;
height: 100%;
background-color: ${theme.colors.grayscale.light5};
height: ${theme.gridUnit * 16}px;
padding: 0 ${theme.gridUnit * 4}px;
.editable-title {
overflow: hidden;
& > input[type='button'],
& > span {
overflow: hidden;
text-overflow: ellipsis;
max-width: 100%;
white-space: nowrap;
}
}
span[role='button'] {
display: flex;
@@ -113,7 +127,7 @@ export const PageHeaderWithActions = ({
}: PageHeaderWithActionsProps) => {
const theme = useTheme();
return (
<div css={headerStyles}>
<div css={headerStyles} className="header-with-actions">
<div className="title-panel">
<DynamicEditableTitle {...editableTitleProps} />
{showTitlePanelItems && (