Skip to content

Commit

Permalink
aligning the rendering of modal footers
Browse files Browse the repository at this point in the history
This way we also profit from the change in #554

Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
  • Loading branch information
ziegenberg committed Jun 4, 2024
1 parent dd3be3c commit 42e17b6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 28 deletions.
5 changes: 1 addition & 4 deletions src/components/shared/EditTableViewModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -225,16 +225,13 @@ const EditTableViewModal = ({
</div>

<footer>
<div className="pull-left">
{/* Render buttons for updating table data */}
<button onClick={() => clearData()} className="cancel active">
{t("CANCEL") /*Cancel*/}
</button>
</div>
<div className="pull-right">
<button onClick={() => save()} className="submit active">
{t("SAVE") /* Save As Default */}
</button>
</div>
</footer>
</section>
</>
Expand Down
24 changes: 0 additions & 24 deletions src/styles/extensions/views/modals/_edit-table-view.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,28 +55,4 @@
width: 48.72%;
}
}

footer {

a {
margin: 15px 5px 15px;

&:first-child {
margin-left: 15px;
}

&:last-child {
margin-right: 15px;
}
}

.pull-right {
float: right;
}

a:first-child {
float: none;
}
}

}

0 comments on commit 42e17b6

Please sign in to comment.