mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-21 23:20:23 +00:00
Small fixes [stage]
This commit is contained in:
parent
ea65d512b1
commit
9208e52e83
8 changed files with 19 additions and 7 deletions
|
@ -171,8 +171,8 @@ public class BrowserFullSessionComp extends SimpleComp {
|
|||
|
||||
private StackComp createSplitStack(SimpleDoubleProperty rightSplit, BrowserSessionTabsComp tabs) {
|
||||
var cache = new HashMap<BrowserSessionTab, Region>();
|
||||
var pinnedStack = new StackComp(List.of());
|
||||
pinnedStack.apply(struc -> {
|
||||
var splitStack = new StackComp(List.of());
|
||||
splitStack.apply(struc -> {
|
||||
model.getEffectiveRightTab().subscribe((newValue) -> {
|
||||
PlatformThread.runLaterIfNeeded(() -> {
|
||||
var all = model.getAllTabs();
|
||||
|
@ -190,6 +190,10 @@ public class BrowserFullSessionComp extends SimpleComp {
|
|||
var r = cache.get(newValue);
|
||||
struc.get().getChildren().clear();
|
||||
struc.get().getChildren().add(r);
|
||||
|
||||
struc.get().setMinWidth(rightSplit.get());
|
||||
struc.get().setMaxWidth(rightSplit.get());
|
||||
struc.get().setPrefWidth(rightSplit.get());
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -205,6 +209,6 @@ public class BrowserFullSessionComp extends SimpleComp {
|
|||
AnchorPane.setTopAnchor(struc.get(), number.doubleValue());
|
||||
});
|
||||
});
|
||||
return pinnedStack;
|
||||
return splitStack;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -424,6 +424,7 @@ public class BrowserSessionTabsComp extends SimpleComp {
|
|||
Comp<?> comp = tabModel.comp();
|
||||
var compRegion = comp.createRegion();
|
||||
var empty = new StackPane();
|
||||
empty.setMinWidth(100);
|
||||
empty.widthProperty().addListener((observable, oldValue, newValue) -> {
|
||||
if (tabModel.isCloseable() && tabs.getSelectionModel().getSelectedItem() == tab) {
|
||||
rightPadding.setValue(newValue.doubleValue());
|
||||
|
|
|
@ -6,6 +6,7 @@ import io.xpipe.app.browser.BrowserStoreSessionTab;
|
|||
import io.xpipe.app.browser.action.BrowserAction;
|
||||
import io.xpipe.app.comp.Comp;
|
||||
import io.xpipe.app.comp.base.ModalOverlayComp;
|
||||
import io.xpipe.app.core.window.AppMainWindow;
|
||||
import io.xpipe.app.ext.ProcessControlProvider;
|
||||
import io.xpipe.app.ext.ShellStore;
|
||||
import io.xpipe.app.issue.ErrorEvent;
|
||||
|
@ -214,6 +215,10 @@ public final class BrowserFileSystemTabModel extends BrowserStoreSessionTab<File
|
|||
return false;
|
||||
}
|
||||
|
||||
if (AppMainWindow.getInstance().getStage().getWidth() <= 1280) {
|
||||
return false;
|
||||
}
|
||||
|
||||
var term = AppPrefs.get().terminalType().getValue();
|
||||
if (term == null || term.getOpenFormat() == TerminalOpenFormat.TABBED) {
|
||||
return false;
|
||||
|
|
|
@ -74,6 +74,8 @@ public class TerminalDockComp extends SimpleComp {
|
|||
event.consume();
|
||||
});
|
||||
stack.getStyleClass().add("terminal-dock-comp");
|
||||
stack.setMinWidth(100);
|
||||
stack.setMinHeight(100);
|
||||
return stack;
|
||||
}
|
||||
|
||||
|
|
|
@ -80,7 +80,7 @@ public final class WindowsTerminalSession extends ControllableTerminalSession {
|
|||
}
|
||||
|
||||
public void updateBoundsState() {
|
||||
if (!control.isIconified() || !control.isVisible()) {
|
||||
if (control.isIconified() || !control.isVisible()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -76,7 +76,7 @@
|
|||
}
|
||||
|
||||
.browser .terminal-dock-comp {
|
||||
-fx-padding: 7 0 7 7;
|
||||
-fx-padding: 7 0 7 0;
|
||||
}
|
||||
|
||||
.selected-file-list {
|
||||
|
|
2
dist/changelogs/13.0.md
vendored
2
dist/changelogs/13.0.md
vendored
|
@ -8,7 +8,7 @@
|
|||
## File browser
|
||||
|
||||
- There is now a new option in the context menu of a tab to pin it, allowing for having a split view with two different file systems
|
||||
- There is now the option to dock terminals in the file browser (this is only available on Windows for now)
|
||||
- There is now the option to dock terminals in the file browser (this is only available on Windows for now). You can disable this in Settings -> File browser -> Terminal docking if you don't like it
|
||||
- The previous system history tab is now always shown
|
||||
- You can now change the default download location for the move to downloads button
|
||||
|
||||
|
|
2
version
2
version
|
@ -1 +1 @@
|
|||
13.0-17
|
||||
13.0-18
|
||||
|
|
Loading…
Reference in a new issue