feat(@desktop/communities): Polishing CommunityTagsPanel design
Close #6739
This commit is contained in:
parent
8d3f1a88a4
commit
3822ca3dab
|
@ -1 +1 @@
|
||||||
Subproject commit 5c24767310e84d97a436c621f183e21aeec66887
|
Subproject commit 789b773649f99245a85af9ea468f2bb95438f6b3
|
|
@ -8,6 +8,7 @@ import StatusQ.Components 0.1
|
||||||
import StatusQ.Controls 0.1
|
import StatusQ.Controls 0.1
|
||||||
import StatusQ.Popups 0.1
|
import StatusQ.Popups 0.1
|
||||||
|
|
||||||
|
import shared.controls 1.0
|
||||||
import utils 1.0
|
import utils 1.0
|
||||||
|
|
||||||
StatusScrollView {
|
StatusScrollView {
|
||||||
|
@ -62,6 +63,7 @@ StatusScrollView {
|
||||||
onSelectedTagsChanged: updateSelectedTags()
|
onSelectedTagsChanged: updateSelectedTags()
|
||||||
|
|
||||||
padding: 0
|
padding: 0
|
||||||
|
contentWidth: column.width
|
||||||
|
|
||||||
QtObject {
|
QtObject {
|
||||||
id: d
|
id: d
|
||||||
|
@ -73,18 +75,24 @@ StatusScrollView {
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
id: column
|
id: column
|
||||||
width: root.availableWidth
|
width: root.availableWidth
|
||||||
spacing: 20
|
spacing: Style.current.padding
|
||||||
|
|
||||||
StatusInput {
|
StatusInput {
|
||||||
id: tagsFilter
|
id: tagsFilter
|
||||||
leftPadding: 0
|
leftPadding: 0
|
||||||
rightPadding: 0
|
rightPadding: 0
|
||||||
label: qsTr("Select tags that will fit your Community")
|
label: qsTr("Select tags that will fit your Community")
|
||||||
|
labelPadding: Style.current.bigPadding
|
||||||
|
font.pixelSize: 15
|
||||||
input.icon.name: "search"
|
input.icon.name: "search"
|
||||||
placeholderText: qsTr("Search tags")
|
placeholderText: qsTr("Search tags")
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ColumnLayout {
|
||||||
|
Layout.topMargin: Style.current.padding
|
||||||
|
Layout.bottomMargin: Style.current.padding
|
||||||
|
|
||||||
StatusCommunityTags {
|
StatusCommunityTags {
|
||||||
filterString: tagsFilter.text
|
filterString: tagsFilter.text
|
||||||
model: d.tagsModel
|
model: d.tagsModel
|
||||||
|
@ -95,6 +103,7 @@ StatusScrollView {
|
||||||
}
|
}
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
StatusModalDivider {
|
StatusModalDivider {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
@ -108,7 +117,7 @@ StatusScrollView {
|
||||||
}
|
}
|
||||||
|
|
||||||
StatusBaseText {
|
StatusBaseText {
|
||||||
text: d.cntSelectedTags + "/" + maxSelectedTags
|
text: qsTr("%1 / %2").arg(d.cntSelectedTags).arg(maxSelectedTags)
|
||||||
color: Theme.palette.baseColor1
|
color: Theme.palette.baseColor1
|
||||||
font.pixelSize: 13
|
font.pixelSize: 13
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue