From 9898fee90fe047288d22b14e497b21cbe6804bc4 Mon Sep 17 00:00:00 2001
From: Nydragon <contact@ccnlc.eu>
Date: Wed, 28 Aug 2024 03:49:54 +0200
Subject: [PATCH] fix: systray not fully revealing last elem

---
 src/Bar.qml                     | 2 ++
 src/base/BRectangle.qml         | 2 --
 src/widgets/systray/SysTray.qml | 5 ++---
 3 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/src/Bar.qml b/src/Bar.qml
index 5d98fde..a0c48ae 100644
--- a/src/Bar.qml
+++ b/src/Bar.qml
@@ -21,6 +21,8 @@ Scope {
                 bottom: true
             }
             margins.left: 2
+            margins.top: 2
+            margins.bottom: 2
 
             width: 30
             color: "transparent"
diff --git a/src/base/BRectangle.qml b/src/base/BRectangle.qml
index be9c23d..b35ce5b 100644
--- a/src/base/BRectangle.qml
+++ b/src/base/BRectangle.qml
@@ -3,8 +3,6 @@ import QtQuick
 Rectangle {
     width: parent.width
     height: parent.height
-    anchors.bottomMargin: 5
-    anchors.topMargin: 5
     border.color: "black"
     border.width: 2
     radius: 5
diff --git a/src/widgets/systray/SysTray.qml b/src/widgets/systray/SysTray.qml
index 5c7fd2d..4024a0e 100644
--- a/src/widgets/systray/SysTray.qml
+++ b/src/widgets/systray/SysTray.qml
@@ -6,19 +6,18 @@ import Quickshell.Services.SystemTray
 import "root:base"
 
 BRectangle {
-    height: 100
+    height: 112
 
     ScrollView {
         anchors.fill: parent
         contentWidth: availableWidth
-        padding: parent.border.width
+        padding: parent.border.width * 2
 
         ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
         ScrollBar.vertical.policy: ScrollBar.AlwaysOff
 
         ColumnLayout {
             anchors.fill: parent
-            anchors.margins: 4
 
             Repeater {
                 model: SystemTray.items