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 <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa 2021-02-12 16:32:04 -08:00 committed by James Valleroy
parent 013a91ed5d
commit 864de1be42
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -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;
}