@@ -505,7 +505,7 @@ defineExpose({
505505 position: 'absolute',
506506 top: 0,
507507 left: 0,
508- zIndex: 2
508+ zIndex: resolvedItems.length + 1
509509 }"
510510 ref =" svgRef"
511511 />
@@ -518,7 +518,7 @@ defineExpose({
518518 :svgRef =" svgRef"
519519 @close =" toggleAnnotator"
520520 :style =" {
521- zIndex: 2
521+ zIndex: resolvedItems.length + 1
522522 }"
523523 />
524524
@@ -547,7 +547,7 @@ defineExpose({
547547 @generatePdf =" generatePdf"
548548 @generateImage =" generateImage"
549549 @toggleAnnotator =" toggleAnnotator"
550- :style =" { visibility: keepUserOptionState ? userOptionsVisible ? 'visible' : 'hidden' : 'visible', zIndex: 2 }"
550+ :style =" { visibility: keepUserOptionState ? userOptionsVisible ? 'visible' : 'hidden' : 'visible', zIndex: resolvedItems.length + 1 }"
551551 >
552552 <template #menuIcon =" { isOpen , color } " v-if =" $slots .menuIcon " >
553553 <slot name =" menuIcon" v-bind =" { isOpen, color }" />
@@ -661,7 +661,7 @@ defineExpose({
661661 transition : opacity 0.2s ease-in-out ;
662662}
663663.vue-ui-dashboard-button :hover {
664- opacity : 1 ;
664+ opacity : 1 ;
665665}
666666.vue-ui-dashboard-button :focus-visible {
667667 outline : 1px solid #CCCCCC ;
@@ -678,4 +678,19 @@ defineExpose({
678678 transform : rotate (360deg );
679679 }
680680}
681+
682+ /* * Override legend font size to make it responsive */
683+ .vue-ui-dashboard-container {
684+ container-type : inline-size;
685+ --legend-font-size : clamp (6px , 1.2 cqw , 24px );
686+ --title-font-size : clamp (8px , 2 cqw , 28px );
687+ --subtitle-font-size : clamp (6px , 1.5 cqw , 24px );
688+ }
689+
690+ @supports not (font-size : 1 cqw) {
691+ .vue-ui-dashboard-container {
692+ --title-font-size : clamp (8px , 2 cqw , 28px );
693+ --subtitle-font-size : clamp (6px , 1.5 cqw , 24px );
694+ }
695+ }
681696 </style >
0 commit comments