Skip to content

Commit 906cddd

Browse files
committed
feat: improve chart layout
1 parent 1299e68 commit 906cddd

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

app/components/PackageDownloadAnalytics.vue

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,10 +434,17 @@ const config = computed(() => ({
434434
},
435435
},
436436
zoom: {
437+
highlightColor: '#2A2A2A',
437438
minimap: {
438439
show: true,
439440
lineColor: '#FAFAFA',
440441
selectedColorOpacity: 0.1,
442+
frameColor: '#3A3A3A',
443+
},
444+
preview: {
445+
fill: '#FAFAFA05',
446+
strokeWidth: 1,
447+
strokeDasharray: 3,
441448
},
442449
},
443450
},
@@ -574,6 +581,14 @@ const config = computed(() => ({
574581
<template #annotator-action-delete="{ disabled }">
575582
<span class="i-carbon-trash-can w-6 h-6 text-fg-subtle" style="pointer-events: none" />
576583
</template>
584+
<template #optionAnnotator="{ isAnnotator }">
585+
<span
586+
class="i-carbon-edit-off w-6 h-6 text-fg-subtle"
587+
style="pointer-events: none"
588+
v-if="isAnnotator"
589+
/>
590+
<span class="i-carbon-edit w-6 h-6 text-fg-subtle" style="pointer-events: none" v-else />
591+
</template>
577592
</VueUiXy>
578593
<template #fallback>
579594
<div class="min-h-[260px]" />

0 commit comments

Comments
 (0)