Fix CSS layout issues for Bootstrap 5 inline editing
- Add flexbox layout for inline editing forms - Constrain select dropdown maximum width to prevent overflow - Improve button styling and spacing - Fix alignment issues in inline mode - Bump version to 25.0.2
This commit is contained in:
@@ -165,3 +165,42 @@
|
||||
border-radius: 0.375rem;
|
||||
box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
|
||||
}
|
||||
|
||||
/* Bootstrap 5 inline editing fixes */
|
||||
.editable-inline .editableform {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
flex-wrap: nowrap;
|
||||
}
|
||||
|
||||
.editable-inline .editable-input {
|
||||
flex-shrink: 1;
|
||||
min-width: 0;
|
||||
max-width: 200px; /* Prevent overly wide selects */
|
||||
}
|
||||
|
||||
.editable-inline .editable-input select {
|
||||
max-width: 100%;
|
||||
min-width: 120px;
|
||||
}
|
||||
|
||||
.editable-inline .editable-buttons {
|
||||
flex-shrink: 0;
|
||||
margin-left: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.25rem;
|
||||
}
|
||||
|
||||
/* Improve button styling for Bootstrap 5 */
|
||||
.editable-buttons .btn {
|
||||
padding: 0.25rem 0.5rem;
|
||||
line-height: 1.2;
|
||||
border-radius: 0.25rem;
|
||||
}
|
||||
|
||||
.editable-buttons .btn-sm {
|
||||
padding: 0.125rem 0.25rem;
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
Reference in New Issue
Block a user