File tree Expand file tree Collapse file tree 4 files changed +10
-3
lines changed
Expand file tree Collapse file tree 4 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 11<script setup lang="ts">
2+ import FloatingTooltip from " @/components/FloatingTooltip.vue" ;
23import SimpleButton from " @/components/SimpleButton.vue" ;
34
45const props = defineProps <{
56 title: string ;
67 subtitle? : string ;
78 icon? : string ;
89 actionIcon? : string ;
10+ actionTooltip? : string ;
911}>();
1012
1113const emit = defineEmits ([" action" ]);
@@ -21,7 +23,10 @@ const emit = defineEmits(["action"]);
2123 </span >
2224 </h1 >
2325 <div class =" action" v-if =" props.actionIcon" >
24- <SimpleButton :icon =" props.actionIcon" @click =" emit('action')" />
26+ <FloatingTooltip :text =" props.actionTooltip" v-if =" props.actionTooltip" >
27+ <SimpleButton :icon =" props.actionIcon" @click =" emit('action')" />
28+ </FloatingTooltip >
29+ <SimpleButton v-else :icon =" props.actionIcon" @click =" emit('action')" />
2530 </div >
2631 </div >
2732</template >
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ onBeforeMount(() => {
7676 background : var (--border-color-lower );
7777 box-shadow : inset 0 0 3.24px 2.4px rgb (var (--text-color-highlight ) 0.5 );
7878 color : var (--text-color-normal );
79- font-size : var (--text-size-small );
79+ font-size : var (--text-size-normal );
8080 font-weight : var (--text-weight-normal );
8181 }
8282
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import DataFrameWidget from "@/components/DataFrameWidget.vue";
1313import DropdownButton from " @/components/DropdownButton.vue" ;
1414import DropdownButtonItem from " @/components/DropdownButtonItem.vue" ;
1515import { type EditableListItemModel } from " @/components/EditableList.vue" ;
16+ import FloatingTooltip from " @/components/FloatingTooltip.vue" ;
1617import HtmlSnippetWidget from " @/components/HtmlSnippetWidget.vue" ;
1718import ImageWidget from " @/components/ImageWidget.vue" ;
1819import MarkdownWidget from " @/components/MarkdownWidget.vue" ;
Original file line number Diff line number Diff line change @@ -90,7 +90,8 @@ onMounted(async () => {
9090 <SectionHeader
9191 title =" Views"
9292 icon =" icon-recent-document"
93- action-icon =" icon-plus-circle"
93+ action-icon =" icon-plus"
94+ action-tooltip =" Add a new view"
9495 @action =" onAddView"
9596 />
9697 <Simplebar class =" list" >
You can’t perform that action at this time.
0 commit comments