Skip to content

Commit 0419167

Browse files
AdrienClairembaulttrasher
authored andcommitted
Improve handling of long text in conditions
1 parent 48fe8a2 commit 0419167

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

css/includes/components/form/_form-editor.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,11 @@ input.value-selector {
395395
}
396396

397397
.visibility-dropdown-card {
398-
width: 700px;
398+
min-width: 700px;
399+
width: fit-content;
400+
401+
// Add scrolling as a last ressort, will not happen most of the time
402+
overflow: scroll;
399403
}
400404

401405
[data-glpi-form-editor-block] {

templates/pages/admin/form/conditional_visibility_dropdown.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
{% endfor %}
8383
</button>
8484
<div
85-
class="dropdown-menu dropdown-menu-end dropdown-menu-card animate__animated animate__zoomIn"
85+
class="dropdown-menu dropdown-menu-card animate__animated animate__zoomIn"
8686
>
8787
<div class="card visibility-dropdown-card">
8888
<div class="card-body">

0 commit comments

Comments
 (0)