From 5597dae15dae2bf115b2d9a45fb79f806a311820 Mon Sep 17 00:00:00 2001 From: Levi Neely Date: Thu, 8 Oct 2026 11:46:40 +0200 Subject: [PATCH] Palette: 75% width, centered (was full-width edge-to-edge) --- src/plugin/ollieplugin.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/plugin/ollieplugin.cpp b/src/plugin/ollieplugin.cpp index 7af5bbf..aab8219 100644 --- a/src/plugin/ollieplugin.cpp +++ b/src/plugin/ollieplugin.cpp @@ -414,11 +414,12 @@ void OllieView::positionPalette(PaletteWidget *palette) if (!w) { return; } - // Span the window width (minus a small margin), anchored near the top, so - // long paths / symbol labels fit without truncation. - const int margin = 12; - palette->resize(w->width() - 2 * margin, 320); - palette->move(w->mapToGlobal(QPoint(margin, w->height() / 6))); + // Three quarters of the window width, horizontally centered, anchored near + // the top — roomy enough for long paths / symbol labels without looking + // edge-to-edge. + const int width = (w->width() * 3) / 4; + palette->resize(width, 320); + palette->move(w->mapToGlobal(QPoint((w->width() - width) / 2, w->height() / 6))); } void OllieView::showCommandPalette()