Skip to content

Commit e6b4fef

Browse files
authored
fix: keep plugin flow timeline visible when the calls table overflows (#504)
1 parent ff579d9 commit e6b4fef

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
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">
103+
<div v-if="expanded" class="of-hidden border-r border-base shrink-0">
104104
<FlowmapPluginFlowTimeline
105105
:session="session"
106106
:build-metrics="buildMetrics"
@@ -114,7 +114,7 @@ function toggleShowType() {
114114
</template>
115115
</FlowmapPluginFlowTimeline>
116116
</div>
117-
<div class="flex-1 h-full min-h-0 flex flex-col">
117+
<div class="flex-1 h-full min-w-0 min-h-0 flex flex-col">
118118
<div class="flex items-center justify-between border-b border-base px2 h10 bg-base rounded-t-2 of-x-auto ws-nowrap">
119119
<div class="flex items-center h-full">
120120
<button v-if="!expanded" class="w8 h8 rounded-full cursor-pointer mr1 hover:bg-active flex items-center justify-center" @click="toggleExpanded(true)">
@@ -137,7 +137,7 @@ function toggleShowType() {
137137
</button>
138138
</div>
139139
</div>
140-
<div class="flex-1 min-h-0 overscroll-contain">
140+
<div class="flex-1 min-h-0 of-x-auto overscroll-contain">
141141
<DataPluginDetailsTable
142142
:session="session"
143143
:build-metrics="buildMetrics"

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

Lines changed: 3 additions & 3 deletions
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">
105+
<div v-if="expanded" class="of-hidden border-r border-base shrink-0">
106106
<FlowmapPluginFlowTimeline
107107
:build-metrics="buildMetrics"
108108
>
@@ -115,7 +115,7 @@ function toggleShowType() {
115115
</template>
116116
</FlowmapPluginFlowTimeline>
117117
</div>
118-
<div class="flex-1 h-full min-h-0 flex flex-col">
118+
<div class="flex-1 h-full min-w-0 min-h-0 flex flex-col">
119119
<div class="flex items-center justify-between border-b border-base px2 h10 bg-base rounded-t-2 of-x-auto ws-nowrap">
120120
<div class="flex items-center h-full">
121121
<button v-if="!expanded" class="w8 h8 rounded-full cursor-pointer mr1 hover:bg-active flex items-center justify-center" @click="toggleExpanded(true)">
@@ -138,7 +138,7 @@ function toggleShowType() {
138138
</button>
139139
</div>
140140
</div>
141-
<div class="flex-1 min-h-0 overscroll-contain">
141+
<div class="flex-1 min-h-0 of-x-auto overscroll-contain">
142142
<DataPluginDetailsTable
143143
:modules="modules"
144144
:build-metrics="buildMetrics"

0 commit comments

Comments
 (0)