Launcher: fix clipboard preview positioning

This commit is contained in:
Ly-sec
2025-12-08 13:24:06 +01:00
parent 4cc9c6ff55
commit 5fbd08f0a6
+8 -1
View File
@@ -501,7 +501,14 @@ SmartPanel {
visible: root.previewActive
width: root.previewPanelWidth
height: Math.round(400 * Style.uiScaleRatio)
x: ui.width + Style.marginM
x: {
// If launcher is on the right side, show preview on the left
if (root.panelPosition.endsWith("_right") || root.panelPosition === "center_right") {
return -root.previewPanelWidth - Style.marginM;
}
// Otherwise, show preview on the right
return ui.width + Style.marginM;
}
y: {
if (!resultsViewLoader.item)
return Style.marginL;