fix(grid): prevent toolbar overlap

This commit is contained in:
t8y2
2026-05-22 01:48:26 +08:00
parent 612c6d36db
commit 2150443bda
2 changed files with 15 additions and 1 deletions
@@ -2969,7 +2969,7 @@ defineExpose({
<ContextMenuTrigger as-child>
<div v-if="hasData || canUseWhereSearch" class="flex-1 flex flex-col overflow-hidden">
<!-- Search bar -->
<div class="flex items-stretch border-b shrink-0 bg-muted/20 relative">
<div class="data-grid-topbar flex items-stretch border-b shrink-0 bg-muted/20 relative">
<div
v-if="useTransaction && editable && (tableMeta || customSave)"
class="flex items-center px-2 py-0.5 border-r shrink-0"
@@ -4677,6 +4677,10 @@ defineExpose({
</template>
<style scoped>
.data-grid-topbar {
min-width: 760px;
}
.data-grid-scroller {
overflow-anchor: none;
will-change: scroll-position;