Skip to content

Commit ddfa8aa

Browse files
committed
fix(gui): equal-width compare panes and restore overview ruler
The side-by-side Compare SplitView set fillWidth on both panes, which Qt distributes unevenly, so a fresh compare opened with the left pane far wider than the right. Give the left pane an explicit half of the space left after the overview ruler and let the right pane fill the remainder. A stray brace also closed the SplitView one element early, orphaning the diff overview ruler into the parent ColumnLayout, where it stacked below the panes instead of beside them. Move overviewPane back inside the SplitView as its third child. Bump version to 1.16.2 and sync packaging recipes + changelogs.
1 parent a458c02 commit ddfa8aa

7 files changed

Lines changed: 31 additions & 10 deletions

File tree

Cargo.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ members = [
99
resolver = "3"
1010

1111
[workspace.package]
12-
version = "1.16.1"
12+
version = "1.16.2"
1313
edition = "2024"
1414
license = "GPL-3.0-only"
1515
repository = "https://github.com/visorcraft/LinSync"

apps/linsync-gui/qml/Main.qml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5697,6 +5697,7 @@ Kirigami.ApplicationWindow {
56975697
}
56985698

56995699
Controls.SplitView {
5700+
id: compareSplit
57005701
visible: root.compareMode !== "Folder" && root.compareMode !== "Table"
57015702
Layout.fillHeight: root.compareMode !== "Folder" && root.compareMode !== "Table"
57025703
Layout.fillWidth: true
@@ -5705,7 +5706,12 @@ Kirigami.ApplicationWindow {
57055706
PaneColumn {
57065707
id: leftPane
57075708

5708-
Controls.SplitView.fillWidth: true
5709+
// Qt SplitView splits unevenly when multiple children set
5710+
// fillWidth; give left an explicit half of the space left
5711+
// after the overview ruler so a fresh compare starts
5712+
// symmetric, and let right fill the remainder. The binding
5713+
// is replaced once the user drags the divider.
5714+
Controls.SplitView.preferredWidth: (compareSplit.width - overviewPane.width) / 2
57095715
Controls.SplitView.minimumWidth: 320
57105716
sideName: "Left"
57115717
sideKey: "left"
@@ -5731,7 +5737,6 @@ Kirigami.ApplicationWindow {
57315737
modelRevision: root.bridgeModelRevision
57325738
editMode: root.editRightMode
57335739
}
5734-
}
57355740

57365741
Rectangle {
57375742
id: overviewPane
@@ -5861,6 +5866,7 @@ Kirigami.ApplicationWindow {
58615866
}
58625867
}
58635868
}
5869+
}
58645870

58655871
TableComparePane {
58665872
visible: root.compareMode === "Table"

packaging/arch/PKGBUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# package.
1414

1515
pkgname=linsync
16-
pkgver=1.16.1
16+
pkgver=1.16.2
1717
pkgrel=1
1818
pkgdesc="Linux-native visual file and folder comparison built on Rust + Qt 6"
1919
arch=('x86_64')

packaging/com.visorcraft.LinSync.metainfo.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,11 @@
7070
</screenshot>
7171
</screenshots>
7272
<releases>
73+
<release version="1.16.2" date="2026-06-30">
74+
<description>
75+
<p>Bug fix release: the Compare view now opens with equal-width left and right panes, and the diff overview ruler is restored to the side of the panes.</p>
76+
</description>
77+
</release>
7378
<release version="1.16.1" date="2026-06-29">
7479
<description>
7580
<p>Bug fix release: raw-text live preview now clears stale preview rows when leaving empty-path Text mode and resynchronizes pane text when returning to raw input mode.</p>

packaging/debian/changelog

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
linsync (1.16.2-1) unstable; urgency=medium
2+
3+
* Fix Compare view startup: left/right panes now open at equal width and the
4+
diff overview ruler is restored beside the panes.
5+
6+
-- VisorCraft LLC <licensing@visorcraft.com> Tue, 30 Jun 2026 12:00:00 -0500
7+
18
linsync (1.16.1-1) unstable; urgency=medium
29

310
* Fix raw-text live-preview cleanup when leaving and returning to empty-path

packaging/rpm/linsync.spec

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# -bb linsync.spec
1414

1515
Name: linsync
16-
Version: 1.16.1
16+
Version: 1.16.2
1717
Release: 1%{?dist}
1818
Summary: Linux-native visual file and folder comparison
1919

@@ -125,6 +125,9 @@ if [ $1 -eq 0 ]; then
125125
fi
126126

127127
%changelog
128+
* Tue Jun 30 2026 VisorCraft LLC <licensing@visorcraft.com> - 1.16.2-1
129+
- Fix Compare view startup: equal-width left/right panes and restore the diff overview ruler beside them.
130+
128131
* Mon Jun 29 2026 VisorCraft LLC <licensing@visorcraft.com> - 1.16.1-1
129132
- Fix raw-text live-preview cleanup when leaving and returning to empty-path Text mode.
130133

0 commit comments

Comments
 (0)