Merge pull request #2676 from gitbutlerapp/fix-resizer-viewport-bug

Fix resizer viewport bug
This commit is contained in:
Pavel Laptev 2024-02-14 13:13:01 +01:00 committed by GitHub
commit 8f027b9daf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -275,20 +275,21 @@
{selectedFiles}
/>
</div>
</div>
<div class="divider-line">
<Resizer
viewport={rsViewport}
direction="right"
inside={$selectedFiles.length > 0}
minWidth={320}
sticky
on:width={(e) => {
laneWidth = e.detail / (16 * $userSettings.zoom);
lscache.set(laneWidthKey + branch.id, laneWidth, 7 * 1440); // 7 day ttl
$defaultBranchWidthRem = laneWidth;
}}
/>
<div class="divider-line">
<Resizer
viewport={rsViewport}
direction="right"
inside={$selectedFiles.length > 0}
minWidth={320}
sticky
on:width={(e) => {
laneWidth = e.detail / (16 * $userSettings.zoom);
lscache.set(laneWidthKey + branch.id, laneWidth, 7 * 1440); // 7 day ttl
$defaultBranchWidthRem = laneWidth;
}}
/>
</div>
</div>
{/if}