From 42f8aaa62c538e8f0039dc5fdcada1a1dd28cb50 Mon Sep 17 00:00:00 2001 From: Levi Neely Date: Tue, 6 Oct 2026 12:52:59 +0200 Subject: [PATCH] Wrap and space the empty-state placeholder in main pane The centered placeholder ("Select a document" / "Not connected: ...") had no width constraint, so long text rendered as a single over-wide, cramped line. Constrain its width, center-align, enable word wrap, and set lineHeight 1.3 so the message breathes. --- ui/qml/Main.qml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ui/qml/Main.qml b/ui/qml/Main.qml index c35e872..aa9bb99 100644 --- a/ui/qml/Main.qml +++ b/ui/qml/Main.qml @@ -246,12 +246,17 @@ ApplicationWindow { Label { anchors.centerIn: parent + width: Math.min(parent.width - root.baseFontSize * 4, + root.baseFontSize * 30) visible: root.currentDoc === "" text: orkClient.connected ? qsTr("Select a document") : qsTr("Not connected: %1").arg(orkClient.error) color: theme.placeholderTextColor font.pointSize: root.baseFontSize + 1 + horizontalAlignment: Text.AlignHCenter + wrapMode: Text.WordWrap + lineHeight: 1.3 } } }