Skip to content

Commit

Permalink
Fix sliding panes compatibility w/mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
pjeby committed Jul 19, 2023
1 parent b3c8e2c commit ce54023
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: ophidian-lib/build@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "pane-relief",
"name": "Pane Relief",
"version": "0.5.0",
"version": "0.5.1",
"minAppVersion": "1.2.8",
"description": "Per-tab history, hotkeys for pane/tab movement, navigation, sliding workspace, and more",
"author": "PJ Eby",
Expand Down
6 changes: 3 additions & 3 deletions src/sliding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ class SlidingPanesManager<T extends SlidingPanes> extends WindowManager<T> {

requestOverlayUpdate = debounce(() => {
if (!app.workspace.leftSplit.collapsed) {
const r = app.workspace.leftSplit.containerEl.find(".workspace-tabs.mod-top-left-space .workspace-tab-header-spacer").getBoundingClientRect();
this.overlay.style.setProperty("--pr-overlay-width", `${r.width}px`);
this.overlay.style.setProperty("--pr-overlay-left", `${r.left}px`);
const r = app.workspace.leftSplit.containerEl.find(".workspace-tabs.mod-top-left-space .workspace-tab-header-spacer")?.getBoundingClientRect();
if (r) this.overlay.style.setProperty("--pr-overlay-width", `${r.width}px`);
if (r) this.overlay.style.setProperty("--pr-overlay-left", `${r.left}px`);
}
}, 100, true);

Expand Down
2 changes: 1 addition & 1 deletion versions.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"0.5.0": "1.2.8",
"0.5.1": "1.2.8",
"0.4.2": "0.15.9",
"0.3.5": "0.15.9",
"0.2.9": "0.15.9",
Expand Down

0 comments on commit ce54023

Please sign in to comment.