Skip to content

Commit 37b673a

Browse files
authored
fix: keep plugin flow timeline vertically scrollable (#505)
1 parent 0c87159 commit 37b673a

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

packages/rolldown/src/app/components/flowmap/PluginFlow.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ function toggleShowType() {
100100
<template>
101101
<div class="p2 h-full w-full">
102102
<div class="flex border border-base rounded-2 h-full relative of-hidden">
103-
<div v-if="expanded" class="of-hidden border-r border-base shrink-0">
103+
<div v-if="expanded" class="of-hidden border-r border-base shrink-0 h-full min-h-0 flex flex-col">
104104
<FlowmapPluginFlowTimeline
105105
:session="session"
106106
:build-metrics="buildMetrics"

packages/rolldown/src/app/components/flowmap/PluginFlowTimeline.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ const endTime = computed(() => {
5151
</script>
5252

5353
<template>
54-
<div class="flex flex-col">
54+
<div class="flex flex-col h-full min-h-0">
5555
<slot name="header" />
56-
<div class="select-none h-full of-auto ws-nowrap w-auto of-visible p4 flex flex-col">
56+
<div class="select-none flex-1 min-h-0 of-x-hidden of-y-auto ws-nowrap w-auto p4 flex flex-col" style="scrollbar-gutter: stable">
5757
<div class="flex">
5858
<FlowmapNode
5959
:active="false"

packages/vite/src/app/components/flowmap/PluginFlow.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ function toggleShowType() {
102102
<template>
103103
<div class="p2 h-full w-full">
104104
<div class="flex border border-base rounded-2 h-full relative of-hidden">
105-
<div v-if="expanded" class="of-hidden border-r border-base shrink-0">
105+
<div v-if="expanded" class="of-hidden border-r border-base shrink-0 h-full min-h-0 flex flex-col">
106106
<FlowmapPluginFlowTimeline
107107
:build-metrics="buildMetrics"
108108
>

packages/vite/src/app/components/flowmap/PluginFlowTimeline.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ const endTime = computed(() => {
4949
</script>
5050

5151
<template>
52-
<div class="flex flex-col">
52+
<div class="flex flex-col h-full min-h-0">
5353
<slot name="header" />
54-
<div class="select-none h-full of-auto ws-nowrap w-auto of-visible p4 flex flex-col">
54+
<div class="select-none flex-1 min-h-0 of-x-hidden of-y-auto ws-nowrap w-auto p4 flex flex-col" style="scrollbar-gutter: stable">
5555
<div class="flex">
5656
<FlowmapNode
5757
:active="false"

0 commit comments

Comments
 (0)