Fix panel content vis styling (#15754) (#15921)

This commit is contained in:
Tim Roes 2018-01-09 11:21:24 +01:00 committed by GitHub
parent e4e9868fb7
commit c0f0150f08
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -378,6 +378,10 @@ dashboard-viewport-provider {
z-index: 1; /* 1. */
padding: 0 8px 8px 8px;
}
.panel-content--fullWidth {
width: 100%;
}
}
/**

View file

@ -67,7 +67,7 @@ export class VisualizeEmbeddableFactory extends EmbeddableFactory {
uiState: uiState,
// Append visualization to container instead of replacing its content
append: true,
cssClass: `panel-content`,
cssClass: `panel-content panel-content--fullWidth`,
// The chrome is permanently hidden in "embed mode" in which case we don't want to show the spy pane, since
// we deem that situation to be more public facing and want to hide more detailed information.
showSpyPanel: !chrome.getIsChromePermanentlyHidden(),