horizontal bar: fix oversized pills when floating + fix weather hover hitbox

This commit is contained in:
end-4
2025-08-19 22:10:45 +07:00
parent 222f083322
commit c452dd3538
2 changed files with 3 additions and 7 deletions
@@ -129,7 +129,6 @@ Item { // Bar content region
BarGroup { BarGroup {
id: middleCenterGroup id: middleCenterGroup
padding: workspacesWidget.widgetPadding padding: workspacesWidget.widgetPadding
Layout.fillHeight: true
Workspaces { Workspaces {
id: workspacesWidget id: workspacesWidget
@@ -157,7 +156,6 @@ Item { // Bar content region
implicitWidth: rightCenterGroupContent.implicitWidth implicitWidth: rightCenterGroupContent.implicitWidth
implicitHeight: rightCenterGroupContent.implicitHeight implicitHeight: rightCenterGroupContent.implicitHeight
Layout.preferredWidth: root.centerSideModuleWidth Layout.preferredWidth: root.centerSideModuleWidth
Layout.fillHeight: true
onPressed: { onPressed: {
GlobalStates.sidebarRightOpen = !GlobalStates.sidebarRightOpen; GlobalStates.sidebarRightOpen = !GlobalStates.sidebarRightOpen;
@@ -328,8 +326,7 @@ Item { // Bar content region
// Weather // Weather
Loader { Loader {
Layout.leftMargin: 8 Layout.leftMargin: 4
Layout.fillHeight: true
active: Config.options.bar.weather.enable active: Config.options.bar.weather.enable
sourceComponent: BarGroup { sourceComponent: BarGroup {
@@ -9,10 +9,9 @@ import QtQuick.Layouts
MouseArea { MouseArea {
id: root id: root
property real margin: 10
property bool hovered: false property bool hovered: false
implicitWidth: rowLayout.implicitWidth + margin * 2 implicitWidth: rowLayout.implicitWidth + 10 * 2
implicitHeight: rowLayout.implicitHeight implicitHeight: Appearance.sizes.barHeight
hoverEnabled: true hoverEnabled: true