previewWidth,
(w) => {
previewWidth = w
- if (!fullscreen && !panesAnimating) panelWidth = w
+ if (!fullscreen && !panesAnimating && contentWidth > 0)
+ panelShare = w / contentWidth
}}
class="flex-1 min-h-0 flex flex-col {fullscreen ? 'p-0 pt-11' : 'p-2 pl-0'}"
>
@@ -1321,9 +1325,9 @@
{/snippet}
{#snippet previewTabStrip(inBand: boolean)}
-
+
:global(.splitpanes__pane) {
- /* `!important` to beat app.css's blanket `transition: none !important` on vertical panes,
+ /* The duration comes from PANES_MOVE_MS, which also times how long the class stays on.
+ `!important` to beat app.css's blanket `transition: none !important` on vertical panes,
which is there so a splitter drag tracks the pointer exactly. */
- transition: width 240ms cubic-bezier(0.33, 1, 0.68, 1) !important;
+ transition: width var(--panes-move) cubic-bezier(0.33, 1, 0.68, 1) !important;
}
/* Collapsed preview: the pane is resized to 0 but stays mounted, so remove