From 6b941d5febe36b512e1cc9ad987da28b34866629 Mon Sep 17 00:00:00 2001 From: usmannasir Date: Sat, 12 Apr 2025 16:07:34 +0500 Subject: [PATCH] improve icon placements for buttons --- .../websiteFunctions/DockerSiteHome.html | 54 +++++++++++++++---- 1 file changed, 45 insertions(+), 9 deletions(-) diff --git a/websiteFunctions/templates/websiteFunctions/DockerSiteHome.html b/websiteFunctions/templates/websiteFunctions/DockerSiteHome.html index c8a2e7e7f..58fb26e0d 100644 --- a/websiteFunctions/templates/websiteFunctions/DockerSiteHome.html +++ b/websiteFunctions/templates/websiteFunctions/DockerSiteHome.html @@ -853,6 +853,42 @@ .btn span { display: inline-block; } + + /* Fix button icon spacing once and for all */ + .btn { + display: inline-flex !important; + align-items: center; + gap: 8px; + padding: 8px 16px; + } + + .btn i.fa { + margin-right: 0; /* Remove margin since we're using gap */ + font-size: 14px; + line-height: 1; + } + + /* Ensure consistent button spacing in button groups */ + .btn-group .btn { + margin: 0 2px; + } + + /* Fix action button spacing */ + .action-buttons .btn { + margin-right: 5px; + } + + /* Override any other styles that might affect button icons */ + button i.fa, + a.btn i.fa { + margin: 0 !important; /* Remove any other margins */ + position: static !important; /* Prevent positioning issues */ + } + + /* Keep the rest of the icon spacing rules */ + i.fa:not(.btn i.fa) { + margin-right: 10px; + }