mirror of
https://git.proxmox.com/git/mirror_novnc
synced 2025-08-13 22:16:37 +00:00
Fix spacing between elements in dialogs
Dialogs have had text inputs and buttons cramped together without space between, this fixes that.
This commit is contained in:
parent
4ab4286b25
commit
b5675bb5f6
@ -456,6 +456,7 @@ html {
|
|||||||
.noVNC_panel hr {
|
.noVNC_panel hr {
|
||||||
border: none;
|
border: none;
|
||||||
border-top: 1px solid var(--novnc-lightgrey);
|
border-top: 1px solid var(--novnc-lightgrey);
|
||||||
|
width: 100%; /* <hr> inside a flexbox will otherwise be 0px wide */
|
||||||
}
|
}
|
||||||
|
|
||||||
.noVNC_panel label {
|
.noVNC_panel label {
|
||||||
@ -493,8 +494,20 @@ html {
|
|||||||
vertical-align: bottom;
|
vertical-align: bottom;
|
||||||
}
|
}
|
||||||
|
|
||||||
.noVNC_submit {
|
.noVNC_panel form {
|
||||||
float: right;
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 12px
|
||||||
|
}
|
||||||
|
|
||||||
|
.noVNC_panel .button_row {
|
||||||
|
margin-top: 10px;
|
||||||
|
display: flex;
|
||||||
|
gap: 10px;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
.noVNC_panel .button_row *:only-child {
|
||||||
|
margin-left: auto; /* Align single buttons to the right */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Expanders */
|
/* Expanders */
|
||||||
|
12
vnc.html
12
vnc.html
@ -362,9 +362,9 @@
|
|||||||
Please verify that the information is correct and press
|
Please verify that the information is correct and press
|
||||||
"Approve". Otherwise press "Reject".
|
"Approve". Otherwise press "Reject".
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div class="button_row">
|
||||||
<input id="noVNC_approve_server_button" type="submit" value="Approve" class="noVNC_submit">
|
<input id="noVNC_approve_server_button" type="submit" value="Approve">
|
||||||
<input id="noVNC_reject_server_button" type="button" value="Reject" class="noVNC_submit">
|
<input id="noVNC_reject_server_button" type="button" value="Reject">
|
||||||
</div>
|
</div>
|
||||||
</form></div>
|
</form></div>
|
||||||
</div>
|
</div>
|
||||||
@ -383,8 +383,8 @@
|
|||||||
<label for="noVNC_password_input">Password:</label>
|
<label for="noVNC_password_input">Password:</label>
|
||||||
<input id="noVNC_password_input" type="password">
|
<input id="noVNC_password_input" type="password">
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div class="button_row">
|
||||||
<input id="noVNC_credentials_button" type="submit" value="Send credentials" class="noVNC_submit">
|
<input id="noVNC_credentials_button" type="submit" value="Send credentials">
|
||||||
</div>
|
</div>
|
||||||
</form></div>
|
</form></div>
|
||||||
</div>
|
</div>
|
||||||
@ -393,7 +393,7 @@
|
|||||||
<div id="noVNC_transition">
|
<div id="noVNC_transition">
|
||||||
<div id="noVNC_transition_text"></div>
|
<div id="noVNC_transition_text"></div>
|
||||||
<div>
|
<div>
|
||||||
<input type="button" id="noVNC_cancel_reconnect_button" value="Cancel" class="noVNC_submit">
|
<input type="button" id="noVNC_cancel_reconnect_button" value="Cancel">
|
||||||
</div>
|
</div>
|
||||||
<div class="noVNC_spinner"></div>
|
<div class="noVNC_spinner"></div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user