Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed #999 - Right Justified Right Fields in Dialogs with Inputs #1007

Merged
merged 5 commits into from
Nov 7, 2024
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions web/scadnano-styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,24 @@ label + select {

.dialog-form-item {
align-self: flex-start;
width: 100%;

/*float: left;*/
/*display: block;*/
}

/* Only apply this to labels that contain an input field */
.dialog-form-item label:has(> input) {
display: flex;
gap: 10px;
justify-content: space-between; /* Allow the label text and input to take up entire space. */
align-items: center; /* Align items vertically */
}

.dialog-form-item input {
margin-left: auto; /* Force label input toward the right. */
}

.dialog-button {
display: inline-block;
border-radius: 3px;
Expand Down
Loading