Skip to content

Commit a3d5f3d

Browse files
committed
minor #7250 Improve form action rendering in datagrid by adjusting display and margin (gremo)
This PR was merged into the 4.x branch. Discussion ---------- Improve form action rendering in datagrid by adjusting display and margin See #7249. This pull request introduces a small UI improvement for action buttons in data grids. Specifically, it adjusts the display and spacing of forms within action cells that are not rendered as dropdowns. - UI/Styling Improvements: * In `assets/css/easyadmin-theme/datagrids.css`, forms inside `.datagrid td.actions` cells (excluding those with the `.actions-as-dropdown` class) are now displayed inline and given horizontal margins for better spacing. Commits ------- 3d10b21 Improve form action rendering in datagrid by adjusting display and margins
2 parents bc78315 + 3d10b21 commit a3d5f3d

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

assets/css/easyadmin-theme/datagrids.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,11 @@ table.datagrid:not(.datagrid-empty) tr:not(.empty-row) td.actions.actions-as-dro
168168
.datagrid td.actions {
169169
text-align: right;
170170
}
171+
.datagrid td.actions:not(.actions-as-dropdown) form {
172+
display: inline;
173+
margin-inline-start: 10px;
174+
margin-inline-end: 10px;
175+
}
171176
.datagrid td.actions a:not(.dropdown-item) {
172177
font-size: var(--font-size-sm);
173178
font-weight: 500;

0 commit comments

Comments
 (0)