@ -13,6 +13,7 @@ import { Tooltip } from '../Tooltip';
import { PanelDescription } from './PanelDescription' ;
import { PanelStatus } from './PanelStatus' ;
import { TitleItem } from './TitleItem' ;
/ * *
* @internal
@ -101,11 +102,6 @@ export function PanelChrome({
cursor : dragClass ? 'move' : 'auto' ,
} ;
const itemStyles : CSSProperties = {
minHeight : headerHeight ,
minWidth : headerHeight ,
} ;
const containerStyles : CSSProperties = { width , height } ;
const ariaLabel = title ? selectors . components . Panels . Panel . containerByTitle ( title ) : 'Panel' ;
@ -133,11 +129,11 @@ export function PanelChrome({
) }
{ loadingState === LoadingState . Streaming && (
< div className = { styles . item } style = { itemStyles } data - testid = "panel-s treaming">
< Tooltip content = "S treaming" >
< Icon name = "circle-mono" size = "s m" className = { styles . streaming } / >
< / Tooltip >
< / div >
< Tooltip content = "S treaming">
< TitleItem className = { dragClassCancel } data - testid = "panel-s treaming" >
< Icon name = "circle-mono" size = "md " className = { styles . streaming } / >
< / TitleItem >
< / Tooltip >
) }
< div className = { styles . rightAligned } >
@ -147,6 +143,7 @@ export function PanelChrome({
aria - label = { ` Menu for panel with ${ title ? ` title ${ title } ` : 'no title' } ` }
title = "Menu"
icon = "ellipsis-v"
iconSize = "md"
narrow
data - testid = "panel-menu-button"
className = { cx ( styles . menuItem , dragClassCancel , 'menu-icon' ) }
@ -224,7 +221,7 @@ const getStyles = (theme: GrafanaTheme2) => {
flexDirection : 'column' ,
flex : '1 1 0' ,
'&:focus-visible , &:hover' : {
'&:focus-within , &:hover' : {
// only show menu icon on hover or focused panel
'.menu-icon' : {
visibility : 'visible' ,
@ -265,6 +262,7 @@ const getStyles = (theme: GrafanaTheme2) => {
title : css ( {
label : 'panel-title' ,
marginBottom : 0 , // override default h6 margin-bottom
paddingRight : theme.spacing ( 1 ) ,
textOverflow : 'ellipsis' ,
overflow : 'hidden' ,
whiteSpace : 'nowrap' ,
@ -298,9 +296,6 @@ const getStyles = (theme: GrafanaTheme2) => {
} ) ,
titleItems : css ( {
display : 'flex' ,
alignItems : 'center' ,
overflow : 'hidden' ,
padding : theme.spacing ( 1 ) ,
} ) ,
} ;
} ;