diff --git a/src/commandpanel.cpp b/src/commandpanel.cpp
--- a/src/commandpanel.cpp
+++ b/src/commandpanel.cpp
@@ -31,7 +31,9 @@ CommandPanel::CommandPanel(QSerialPort*
serialPort = port;
ui->setupUi(this);
- ui->scrollAreaWidgetContents->setLayout(new QVBoxLayout);
+ auto layout = new QVBoxLayout();
+ layout->setSpacing(0);
+ ui->scrollAreaWidgetContents->setLayout(layout);
#ifdef Q_OS_WIN
ui->pbNew->setIcon(QIcon(":/icons/list-add"));
diff --git a/src/commandwidget.ui b/src/commandwidget.ui
--- a/src/commandwidget.ui
+++ b/src/commandwidget.ui
@@ -48,7 +48,14 @@
-
-
+
+
+
+ 0
+ 0
+
+
+
-