clock-settings: dont double scroll

This commit is contained in:
Lemmy
2026-01-25 01:11:22 -05:00
parent 81f7ce42c1
commit c125741e0f
2 changed files with 14 additions and 5 deletions
@@ -283,7 +283,7 @@ ColumnLayout {
NDateTimeTokens {
Layout.fillWidth: true
height: 200
Layout.preferredHeight: 300
// Connect to token clicked signal if NDateTimeTokens provides it
onTokenClicked: token => root.insertToken(token)
+13 -4
View File
@@ -21,11 +21,18 @@ Rectangle {
anchors.margins: Style.marginS
spacing: Style.marginS
NListView {
id: tokensList
Flickable {
Layout.fillWidth: true
Layout.fillHeight: true
model: [
contentHeight: tokensColumn.implicitHeight
clip: true
Column {
id: tokensColumn
width: parent.width
Repeater {
model: [
// Common format combinations
{
"category": "Common",
@@ -201,7 +208,7 @@ Rectangle {
delegate: Rectangle {
id: tokenDelegate
width: tokensList.width
width: tokensColumn.width
height: layout.implicitHeight + Style.marginS
radius: Style.iRadiusS
color: {
@@ -353,6 +360,8 @@ Rectangle {
}
}
}
}
}
}
}