Skip to content

Commit 867662a

Browse files
committed
fix styles
1 parent bcf658b commit 867662a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

web_src/js/components/ActivityHeatmap.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,16 @@ export default {
6868
/>
6969
</template>
7070
<style>
71-
/* A quick patch for vue3-calendar-heatmap's tooltip padding.
71+
/* A quick patch for vue3-calendar-heatmap's tooltip padding, to avoid conflicting with other tippy contents.
7272
At the moment we could only identify the tooltip by its transition property.
7373
https://github.com/razorness/vue3-calendar-heatmap/blob/955626176cb5dc3d3ead8120475c2e5e753cc392/src/components/CalendarHeatmap.vue#L202
74+
This selector should be replaced by a more specific one if the library adds a CSS class.
7475
*/
7576
[data-tippy-root][style*="transition: transform 0.1s ease-out"] .tippy-box .tippy-content {
7677
transition: none !important;
77-
padding: 0.5em;
78+
padding: 0.5rem 1rem;
79+
background-color: var(--color-tooltip-bg);
80+
color: var(--color-tooltip-text);
81+
border: none;
7882
}
7983
</style>

0 commit comments

Comments
 (0)