mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-15 18:43:59 +00:00
qml format
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
import QtQuick
|
import QtQuick
|
||||||
import QtQuick.Layouts
|
|
||||||
import QtQuick.Controls
|
import QtQuick.Controls
|
||||||
import qs.Commons
|
import QtQuick.Layouts
|
||||||
import qs.Widgets
|
|
||||||
import qs.Services.Keyboard
|
|
||||||
import "../../../Helpers/TextFormatter.js" as TextFormatter
|
import "../../../Helpers/TextFormatter.js" as TextFormatter
|
||||||
|
import qs.Commons
|
||||||
|
import qs.Services.Keyboard
|
||||||
|
import qs.Widgets
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: previewPanel
|
id: previewPanel
|
||||||
@@ -35,7 +35,7 @@ Item {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
loadingFullContent = true;
|
loadingFullContent = true;
|
||||||
ClipboardService.decode(currentItem.clipboardId, function(content) {
|
ClipboardService.decode(currentItem.clipboardId, function (content) {
|
||||||
fullContent = TextFormatter.wrapTextForDisplay(content);
|
fullContent = TextFormatter.wrapTextForDisplay(content);
|
||||||
loadingFullContent = false;
|
loadingFullContent = false;
|
||||||
});
|
});
|
||||||
@@ -78,8 +78,6 @@ Item {
|
|||||||
anchors.margins: Style.marginS
|
anchors.margins: Style.marginS
|
||||||
spacing: Style.marginS
|
spacing: Style.marginS
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
|
|||||||
@@ -280,13 +280,9 @@ SmartPanel {
|
|||||||
width: root.previewPanelWidth
|
width: root.previewPanelWidth
|
||||||
height: Math.round(400 * Style.uiScaleRatio)
|
height: Math.round(400 * Style.uiScaleRatio)
|
||||||
x: ui.width + Style.marginM
|
x: ui.width + Style.marginM
|
||||||
y: Math.max(
|
y: Math.max(Style.marginL // Minimum y is the top margin of the content area
|
||||||
Style.marginL, // Minimum y is the top margin of the content area
|
, Math.min(resultsList.mapToItem(ui, 0, (root.selectedIndex * (root.entryHeight + resultsList.spacing)) - resultsList.contentY).y, ui.height - previewBox.height - Style.marginL // Maximum y, considering bottom margin
|
||||||
Math.min(
|
))
|
||||||
resultsList.mapToItem(ui, 0, (root.selectedIndex * (root.entryHeight + resultsList.spacing)) - resultsList.contentY).y,
|
|
||||||
ui.height - previewBox.height - Style.marginL // Maximum y, considering bottom margin
|
|
||||||
)
|
|
||||||
)
|
|
||||||
z: -1 // Draw behind main panel content if it ever overlaps
|
z: -1 // Draw behind main panel content if it ever overlaps
|
||||||
|
|
||||||
opacity: visible ? 1.0 : 0.0
|
opacity: visible ? 1.0 : 0.0
|
||||||
|
|||||||
Reference in New Issue
Block a user