Show different tabs side by side in split view
Each tab menu has "Open to the right". It shows the tab in a new pane to the right of the active pane. A pane shows a document or a plugin tab, for example a browser tab. - A plugin view stays in the plugin layer above the panes, so a move between panes does not mount it again. - A browser tab that covers the area moves to the left pane when a tab opens beside it. The last pane gives its plugin tab the whole area. - The "Split" toggle of a document is now "Read beside". Card 565874b2.
This commit is contained in:
@@ -147,7 +147,9 @@
|
||||
const splitView = $derived(split && canPreview && !reading);
|
||||
const view: ViewMode = $derived(readOnly ? "read" : chrome === "Source" ? "source" : "write");
|
||||
// The tab already names the file, so the breadcrumb shows only its folder.
|
||||
const folder = $derived(buffer?.relPath.includes("/") ? buffer.relPath.slice(0, buffer.relPath.lastIndexOf("/")).split("/").join(" / ") : "");
|
||||
// Beside other panes, the breadcrumb also names the file, because the tab bar names only the file of the active pane.
|
||||
const folder = $derived(!buffer ? "" : onCloseSplit ? buffer.relPath.split("/").join(" / ")
|
||||
: buffer.relPath.includes("/") ? buffer.relPath.slice(0, buffer.relPath.lastIndexOf("/")).split("/").join(" / ") : "");
|
||||
</script>
|
||||
|
||||
{#if !buffer || buffer.kind === "empty"}
|
||||
|
||||
Reference in New Issue
Block a user