From 864de1be429ec45e7b6ec5071effd15339376a15 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Fri, 12 Feb 2021 16:32:04 -0800 Subject: [PATCH] ui: Fix buttons jumping on click in snapshots page Fixes: #2049. This is regression introduced by me in 213cf16f8daa66dbfd3c761a61483c959c753559. Although this case was tested for regression, the test setup was incorrect. Tests: - In networks page to details of a connection, the Delete button is aligned to the right. - In snapshots page, the Create Snapshot button is aligned to the left and Delete Snapshots button is aligned to the right. Clicking on the buttons does not change their position. Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- static/themes/default/css/main.css | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/static/themes/default/css/main.css b/static/themes/default/css/main.css index a742b690a..e607ea96c 100644 --- a/static/themes/default/css/main.css +++ b/static/themes/default/css/main.css @@ -723,8 +723,10 @@ input[type='submit'].running-status-button { } .btn-toolbar .button-secondary:first-child, -.btn-toolbar :not(.button-secondary) + .button-secondary, -.btn-toolbar :not(.button-secondary) + .running-status-button-before { +.btn-toolbar .form:not(.button-secondary) + .button-secondary, +.btn-toolbar .form:not(.button-secondary) + .running-status-button-before, +.btn-toolbar .btn:not(.button-secondary) + .button-secondary, +.btn-toolbar .btn:not(.button-secondary) + .running-status-button-before { margin-left: auto; }