Fix sizing of share details page buttons

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2024-11-15 17:19:53 +08:00
parent dd1ab1a4e0
commit d757343628
No known key found for this signature in database
GPG key ID: C839200C384636B0
2 changed files with 5 additions and 6 deletions

View file

@ -716,18 +716,16 @@ Page {
Button {
height: Style.standardPrimaryButtonHeight
icon.source: hovered
? "image://svgimage-custom-color/close.svg/" + palette.brightText
: "image://svgimage-custom-color/close.svg/" + Style.errorBoxBackgroundColor
icon.source: "image://svgimage-custom-color/close.svg/" + palette.buttonText
icon.height: Style.extraSmallIconSize
text: qsTr("Unshare")
onClicked: root.deleteShare()
}
Button {
height: Style.standardPrimaryButtonHeight
icon.source: hovered
? "image://svgimage-custom-color/add.svg/" + palette.brightText
: "image://svgimage-custom-color/add.svg/" + root.accentColor
icon.source: "image://svgimage-custom-color/add.svg/" + palette.buttonText
icon.height: Style.extraSmallIconSize
text: qsTr("Add another link")
visible: root.isLinkShare && root.canCreateLinkShares
enabled: visible

View file

@ -71,6 +71,7 @@ QtObject {
property int iconButtonWidth: 36
property int standardPrimaryButtonHeight: 40
readonly property int smallIconSize: 16
readonly property int extraSmallIconSize: 8
property int minActivityHeight: variableSize(32)