@@ -328,54 +328,72 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
328328 </div >
329329 <div
330330v-if =" dashboardPanelData.data.type == 'html'"
331- class =" col column"
332- style =" width : 100 % ; height : 100 % ;flex :1 "
331+ class =" col column tw-mr-[0.625rem] "
332+ style =" height : calc ( 100 vh - 106 px ) ;flex :1 "
333333 >
334- <CustomHTMLEditor
335- v-model =" dashboardPanelData.data.htmlContent"
336- style =" width :100% ;height :100% "
337- class =" col"
338- />
339- <DashboardErrorsComponent :errors =" errorData" class =" col-auto" />
334+ <div class =" card-container tw-h-full tw-flex tw-flex-col" >
335+ <CustomHTMLEditor
336+ v-model =" dashboardPanelData.data.htmlContent"
337+ style =" flex :1 ;min-height :0 "
338+ />
339+ <DashboardErrorsComponent :errors =" errorData" class =" tw-flex-shrink-0" />
340+ </div >
340341 </div >
341342 <div
342343v-if =" dashboardPanelData.data.type == 'markdown'"
343- class =" col column"
344- style =" width : 100 % ; height : 100 % ;flex :1 "
344+ class =" col column tw-mr-[0.625rem] "
345+ style =" height : calc ( 100 vh - 106 px ) ;flex :1 "
345346 >
346- <CustomMarkdownEditor
347- v-model =" dashboardPanelData.data.markdownContent"
348- style =" width :100% ;height :100% "
349- class =" col"
350- />
351- <DashboardErrorsComponent :errors =" errorData" class =" col-auto" />
347+ <div class =" card-container tw-h-full tw-flex tw-flex-col" >
348+ <CustomMarkdownEditor
349+ v-model =" dashboardPanelData.data.markdownContent"
350+ style =" flex :1 ;min-height :0 "
351+ />
352+ <DashboardErrorsComponent :errors =" errorData" class =" tw-flex-shrink-0" />
353+ </div >
352354 </div >
353355 <div
354356v-if =" dashboardPanelData.data.type == 'custom_chart'"
355- class =" col column"
356- style =" height :calc (100% );overflow-y :auto "
357+ class =" col tw-mr-[0.625rem]"
358+ style ="
359+ height :calc (100vh - 106px );
360+ overflow-y :auto ;
361+ display :flex ;
362+ flex-direction :row ;
363+ overflow-x :hidden ;
364+ "
357365 >
358366 <q-splitter
359367v-model =" dashboardPanelData.layout.splitter"
360- @update:model-value =" layoutSplitterUpdated"
361- style =" width :100% ;height :100% "
368+ :limits =" [0, 20]"
369+ :style =" {
370+ width: dashboardPanelData.layout.showFieldList
371+ ? '100%'
372+ : 'calc(100% - 50px)',
373+ height: '100%',
374+ }"
362375 >
363376 <template #before >
364377 <div
365- class =" col scroll"
366- style =" height :calc (100% );overflow-y :auto "
378+ class =" tw-w-full tw-h-full tw-pr-[0.625rem] tw-pb-[0.625rem]"
367379 >
368380 <div
369- v-if =" dashboardPanelData.layout.showFieldList"
370- class =" column"
371- style =" height :100% "
381+ class =" col scroll card-container"
382+ style =" height :calc (100vh - 106px );overflow-y :auto "
372383 >
373- <div class =" col-auto q-pa-sm" >
374- <span class =" text-weight-bold" >{{ t("panel.fields") }}</span >
375- </div >
376- <div class =" col" style =" width :100% " >
377- <!-- <GetFields :editMode="editMode" />-->
378- <FieldList :editMode =" editMode" />
384+ <div
385+ v-if =" dashboardPanelData.layout.showFieldList"
386+ class =" column"
387+ style =" height :100% "
388+ >
389+ <div class =" col-auto q-pa-sm" >
390+ <span class =" text-weight-bold" >{{
391+ t("panel.fields")
392+ }}</span >
393+ </div >
394+ <div class =" col" style =" width :100% " >
395+ <FieldList :editMode =" editMode" />
396+ </div >
379397 </div >
380398 </div >
381399 </div >
@@ -384,7 +402,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
384402 <div class =" splitter-vertical splitter-enabled" ></div >
385403 <q-btn
386404color =" primary"
387- size =" 12px "
405+ size =" sm "
388406:icon ="
389407 dashboardPanelData.layout.showFieldList
390408 ? 'chevron_left'
@@ -393,108 +411,75 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
393411dense
394412round
395413style =" top :14px ;z-index :100 "
396- :style =" {
397- right: dashboardPanelData.layout.showFieldList
398- ? '-20px'
399- : '-0px',
400- left: dashboardPanelData.layout.showFieldList ? '5px' : '12px',
401- }"
402414@click =" collapseFieldList"
403415 />
404416 </template >
405417 <template #after >
406- <div class =" row" style =" height :calc (100% );overflow-y :auto " >
407- <div class =" col" style =" height :100% " >
408- <q-splitter
409- class =" query-editor-splitter"
410- v-model =" dashboardPanelData.layout.querySplitter"
411- horizontal
412- @update:model-value =" querySplitterUpdated"
413- reverse
414- unit =" px"
415- :limits ="
416- !dashboardPanelData.layout.showQueryBar
417- ? [43, 400]
418- : [140, 400]
419- "
420- :disable =" !dashboardPanelData.layout.showQueryBar"
421- style =" height :100% "
418+ <div
419+ class =" row card-container"
420+ style =" height :calc (100vh - 106px );overflow-y :auto "
421+ >
422+ <div class =" col scroll" style =" height :100% " >
423+ <div
424+ class =" layout-panel-container tw-h-[calc(100vh-200px)] col"
422425 >
423- <template #before >
424- <div
425- class =" layout-panel-container col"
426- style =" height :100% "
427- >
428- <q-splitter
429- class =" query-editor-splitter"
430- v-model =" splitterModel"
431- style =" height :100% "
432- @update:model-value =" layoutSplitterUpdated"
433- >
434- <template #before >
435- <CustomChartEditor
436- v-model =" dashboardPanelData.data.customChartContent"
437- style =" width :100% ;height :100% "
438- />
439- </template >
440- <template #separator >
441- <div class =" splitter-vertical splitter-enabled" ></div >
442- <q-avatar
443- color =" primary"
444- text-color =" white"
445- size =" 20px"
446- icon =" drag_indicator"
447- style =" top :10px ;left :3.5px "
448- data-test =" dashboard-markdown-editor-drag-indicator"
449- />
450- </template >
451- <template #after >
452- <PanelSchemaRenderer
453- v-if =" chartData"
454- @metadata-update =" metaDataValue"
455- :key =" dashboardPanelData.data.type"
456- :panelSchema =" chartData"
457- :selectedTimeObj =" dashboardPanelData.meta.dateTime"
458- :variablesData =" {}"
459- :width =" 6"
460- @error =" handleChartApiError"
461- @updated:data-zoom =" onDataZoom"
462- :allowAlertCreation =" true"
463- @updated:vrl-function-field-list ="
464- updateVrlFunctionFieldList
465- "
466- @last-triggered-at-update ="
467- handleLastTriggeredAtUpdate
468- "
469- @series-data-update =" seriesDataUpdate"
470- searchType =" ui"
471- />
472- </template >
473- </q-splitter >
474-
475- <DashboardErrorsComponent
476- :errors =" errorData"
477- class =" col-auto"
478- style =" flex-shrink :0 "
426+ <q-splitter
427+ class =" query-editor-splitter"
428+ v-model =" splitterModel"
429+ style =" height :100% "
430+ @update:model-value =" layoutSplitterUpdated"
431+ >
432+ <template #before >
433+ <CustomChartEditor
434+ v-model =" dashboardPanelData.data.customChartContent"
435+ style =" width :100% ;height :100% "
436+ />
437+ </template >
438+ <template #separator >
439+ <div class =" splitter-vertical splitter-enabled" ></div >
440+ <q-avatar
441+ color =" primary"
442+ text-color =" white"
443+ size =" 20px"
444+ icon =" drag_indicator"
445+ style =" top :10px ;left :3.5px "
446+ data-test =" dashboard-markdown-editor-drag-indicator"
447+ />
448+ </template >
449+ <template #after >
450+ <PanelSchemaRenderer
451+ v-if =" chartData"
452+ @metadata-update =" metaDataValue"
453+ :key =" dashboardPanelData.data.type"
454+ :panelSchema =" chartData"
455+ :selectedTimeObj =" dashboardPanelData.meta.dateTime"
456+ :variablesData =" {}"
457+ :width =" 6"
458+ @error =" handleChartApiError"
459+ @updated:data-zoom =" onDataZoom"
460+ :allowAlertCreation =" true"
461+ @updated:vrl-function-field-list ="
462+ updateVrlFunctionFieldList
463+ "
464+ @last-triggered-at-update ="
465+ handleLastTriggeredAtUpdate
466+ "
467+ @series-data-update =" seriesDataUpdate"
468+ searchType =" ui"
479469 />
480- </div >
481- </template >
482- <template #separator >
483- <div
484- class =" splitter"
485- :class ="
486- dashboardPanelData.layout.showQueryBar
487- ? 'splitter-enabled'
488- : ''
489- "
490- ></div >
491- </template >
492- <template #after >
493- <div style =" height :100% ;width :100% " class =" row column" >
494- <DashboardQueryEditor />
495- </div >
496- </template >
497- </q-splitter >
470+ </template >
471+ </q-splitter >
472+ </div >
473+ <div class =" col-auto" style =" flex-shrink :0 " >
474+ <DashboardErrorsComponent
475+ :errors =" errorData"
476+ class =" col-auto"
477+ style =" flex-shrink :0 "
478+ />
479+ </div >
480+ <div class =" row column tw-h-[calc(100vh-200px)]" >
481+ <DashboardQueryEditor />
482+ </div >
498483 </div >
499484 <q-separator vertical />
500485 <div class =" col-auto" >