fix(tailscalectl): apply all three click/layout fixes from working config

This commit is contained in:
Vybe (Coding Agent) 2026-05-17 21:32:46 +00:00
parent 0743f5450e
commit f980f4da21

View file

@ -75,24 +75,22 @@ PluginComponent {
popoutContent: Component {
PopoutComponent {
id: popout
headerText: "Tailscale"
detailsText: root.isConnected ? "Connected" : "Disconnected"
showCloseButton: true
Column {
Item {
width: parent.width
height: parent.height - popout.headerHeight - popout.detailsHeight - Theme.spacingXL
anchors.top: parent.top
anchors.topMargin: Theme.spacingM
spacing: Theme.spacingM
height: Theme.spacingM + statusRow.implicitHeight + Theme.spacingS + exitNodeText.implicitHeight + Theme.spacingM
Row {
id: statusRow
y: Theme.spacingM
width: parent.width
spacing: Theme.spacingS
anchors.left: parent.left
anchors.right: parent.right
anchors.leftMargin: Theme.spacingM
anchors.right: parent.right
anchors.rightMargin: Theme.spacingM
MouseArea {
@ -101,7 +99,9 @@ PluginComponent {
anchors.verticalCenter: parent.verticalCenter
width: toggleIcon.implicitWidth
height: toggleIcon.implicitHeight
onClicked: toggleTailscale()
onClicked: {
root.toggleTailscale()
}
DankIcon {
id: toggleIcon
@ -136,7 +136,9 @@ PluginComponent {
anchors.fill: parent
acceptedButtons: Qt.RightButton
propagateComposedEvents: true
onClicked: toggleTailscale()
onClicked: {
root.toggleTailscale()
}
}
horizontalBarPill: Component {
@ -147,7 +149,6 @@ PluginComponent {
name: root.isConnected ? "vpn_key" : "vpn_key_off"
size: Theme.iconSize
color: root.isConnected ? Theme.primary : Theme.surfaceText
anchors.verticalCenter: parent.verticalCenter
}
}
}
@ -160,7 +161,6 @@ PluginComponent {
name: root.isConnected ? "vpn_key" : "vpn_key_off"
size: Theme.iconSize
color: root.isConnected ? Theme.primary : Theme.surfaceText
anchors.horizontalCenter: parent.horizontalCenter
}
}
}