@@ -465,12 +465,14 @@ export function QueryColumn({
465465export function HistoryAndStarredQueriesTabs ( {
466466 containerCSS,
467467 containerWidth,
468+ isSpaceReduced,
468469 onUpdateAndSubmit,
469470 height,
470471} : {
471472 containerCSS : Interpolation < Theme > ;
472473 containerWidth : number ;
473474 onUpdateAndSubmit : ( qs : string ) => void ;
475+ isSpaceReduced ?: boolean ;
474476 height : number ;
475477} ) {
476478 const kibana = useKibana < ESQLEditorDeps > ( ) ;
@@ -650,41 +652,42 @@ export function HistoryAndStarredQueriesTabs({
650652 </ EuiTabs >
651653 < EuiFlexItem grow = { false } >
652654 < EuiFlexGroup responsive = { false } alignItems = "center" gutterSize = "s" >
653- < EuiText
654- size = "xs"
655- color = "subdued"
656- data-test-subj = "ESQLEditor-history-starred-queries-helpText"
657- >
658- < p >
659- { selectedTabId === 'history-queries-tab'
660- ? ( ( ) => {
661- const stats = getStorageStats ( ) ;
662- const displayCount = searchQuery . trim ( )
663- ? filteredHistoryItems . length
664- : stats . queryCount ;
665- return i18n . translate ( 'esqlEditor.history.historyItemsStorage' , {
666- defaultMessage : 'Showing {queryCount} queries ({storageSizeKB}KB used)' ,
667- values : {
668- queryCount : displayCount ,
669- storageSizeKB : stats . storageSizeKB ,
670- } ,
671- } ) ;
672- } ) ( )
673- : ( ( ) => {
674- const displayCount = starredSearchQuery . trim ( )
675- ? filteredStarredQueries . length
676- : starredQueries . length ;
677- return i18n . translate ( 'esqlEditor.history.starredItemslimit' , {
678- defaultMessage :
679- 'Showing {starredItemsCount} queries (max {starredItemsLimit})' ,
680- values : {
681- starredItemsLimit : ESQL_STARRED_QUERIES_LIMIT ,
682- starredItemsCount : displayCount ?? 0 ,
683- } ,
684- } ) ;
685- } ) ( ) }
686- </ p >
687- </ EuiText >
655+ { ! isSpaceReduced && (
656+ < EuiText
657+ size = "xs"
658+ color = "subdued"
659+ data-test-subj = "ESQLEditor-history-starred-queries-helpText"
660+ >
661+ < p >
662+ { selectedTabId === 'history-queries-tab'
663+ ? ( ( ) => {
664+ const stats = getStorageStats ( ) ;
665+ const displayCount = searchQuery . trim ( )
666+ ? filteredHistoryItems . length
667+ : stats . queryCount ;
668+ return i18n . translate ( 'esqlEditor.history.historyItemsStorage' , {
669+ defaultMessage : 'Showing {queryCount} queries' ,
670+ values : {
671+ queryCount : displayCount ,
672+ } ,
673+ } ) ;
674+ } ) ( )
675+ : ( ( ) => {
676+ const displayCount = starredSearchQuery . trim ( )
677+ ? filteredStarredQueries . length
678+ : starredQueries . length ;
679+ return i18n . translate ( 'esqlEditor.history.starredItemslimit' , {
680+ defaultMessage :
681+ 'Showing {starredItemsCount} queries (max {starredItemsLimit})' ,
682+ values : {
683+ starredItemsLimit : ESQL_STARRED_QUERIES_LIMIT ,
684+ starredItemsCount : displayCount ?? 0 ,
685+ } ,
686+ } ) ;
687+ } ) ( ) }
688+ </ p >
689+ </ EuiText >
690+ ) }
688691 { selectedTabId === 'history-queries-tab' && (
689692 < EuiFlexItem grow = { false } >
690693 < EuiFieldSearch
@@ -696,7 +699,8 @@ export function HistoryAndStarredQueriesTabs({
696699 onChange = { ( e ) => setSearchQuery ( e . target . value ) }
697700 data-test-subj = "ESQLEditor-history-search"
698701 css = { css `
699- width : 400px ;
702+ max-width : 400px ;
703+ width : ${ isSpaceReduced ? '100%' : '400px' } ;
700704 ` }
701705 />
702706 </ EuiFlexItem >
0 commit comments