Skip to content

Commit b5830f2

Browse files
committed
ux: right align form dialog buttons
Adjust the button placement in the metadata editor and various dialogs for a more visually-appealing experience and improved usability. This revision right aligns the buttons in a flex container, rather than stacking or centering them.
1 parent 210c525 commit b5830f2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/formdialog.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@
6161
left: 0;
6262
right: 0;
6363
display: flex;
64+
justify-content: flex-end;
6465
position: absolute;
6566
padding: 1em 1em;
6667

6768
/* Without this emby-checkbox is able to appear on top */
6869
z-index: 1;
6970
align-items: flex-end;
70-
justify-content: center;
7171
flex-wrap: wrap;
7272
}
7373

src/components/metadataEditor/metadataEditor.template.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ <h2>${HeaderMetadataSettings}</h2>
266266
</div>
267267
</div>
268268
<br />
269-
<div class="formDialogFooter">
269+
<div class="formDialogFooter" style="display: flex; justify-content: flex-end;">
270270
<button is="emby-button" type="button" class="raised button-cancel block btnCancel formDialogFooterItem">
271271
<span>${ButtonCancel}</span>
272272
</button>

0 commit comments

Comments
 (0)