Skip to content

Commit

Permalink
Resizer: Increase target size (#4773)
Browse files Browse the repository at this point in the history
* increase target, add border to custom dashboard

* fix table explorer placement

* z index
  • Loading branch information
briangregoryholmes authored Apr 30, 2024
1 parent 645cdee commit 9a44e79
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 8 deletions.
3 changes: 1 addition & 2 deletions web-common/src/features/tables/TableExplorer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

{#if connectorInstanceId && olapConnector}
<section
class="flex flex-col border-t border-t-gray-200"
class="flex flex-col border-t border-t-gray-200 relative"
style:min-height="{MIN_HEIGHT}px"
style:height="{sectionHeight}px"
>
Expand All @@ -43,7 +43,6 @@
min={10}
basis={showTables ? startingHeight : MIN_HEIGHT}
max={2000}
absolute={false}
/>
<button
class="flex justify-between items-center w-full pl-2 pr-3.5 pt-2 pb-2 text-gray-500"
Expand Down
24 changes: 20 additions & 4 deletions web-common/src/layout/Resizer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@

<style lang="postcss">
button {
@apply z-10 flex-none;
@apply z-50 flex-none;
/* @apply bg-red-400; */
}
Expand All @@ -92,21 +92,37 @@
}
.NS {
@apply w-full h-2 pr-8;
@apply w-full h-3 pr-8;
@apply cursor-row-resize;
}
.EW {
@apply w-2 h-full;
@apply w-3 h-full;
@apply cursor-col-resize;
}
.NS.maxed {
@apply cursor-s-resize;
}
.NS.minned {
@apply cursor-n-resize;
}
.EW.minned {
@apply cursor-e-resize;
}
.EW.maxed {
@apply cursor-w-resize;
}
.left {
@apply -left-1;
}
.right {
@apply right-0;
@apply -right-1;
}
.top {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<WorkspaceContainer inspector={false} bind:width={containerWidth}>
<ChartsHeader slot="header" {filePath} />
<div slot="body" class="flex size-full">
<div style:width="{editorWidth}px" class="relative flex-none">
<div style:width="{editorWidth}px" class="relative flex-none border-r">
<Resizer
direction="EW"
side="right"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@
{#if selectedView == "code" || selectedView == "split"}
<div
transition:slide={{ duration: 400, axis: "x" }}
class="relative h-full flex-shrink-0 w-full"
class="relative h-full flex-shrink-0 w-full border-r"
class:!w-full={selectedView === "code"}
style:width="{editorWidth}px"
>
Expand Down

1 comment on commit 9a44e79

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.