From 83957a41cd472fd68b4caf8848344a73881ebdcc Mon Sep 17 00:00:00 2001 From: Lisa Durand Date: Tue, 19 Sep 2023 17:50:38 +0200 Subject: [PATCH] add min height for table with max 2 files to display dropdown --- app/assets/stylesheets/table.scss | 5 +++++ app/views/instructeurs/procedures/show.html.haml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/assets/stylesheets/table.scss b/app/assets/stylesheets/table.scss index 37d146b2e..c265035a7 100644 --- a/app/assets/stylesheets/table.scss +++ b/app/assets/stylesheets/table.scss @@ -65,3 +65,8 @@ } } } + +// Hacky css to display dropdown "customize table" for table with only 1 or 2 lines +table.min-height-300 { + min-height: 300px; +} diff --git a/app/views/instructeurs/procedures/show.html.haml b/app/views/instructeurs/procedures/show.html.haml index bf73cb667..19228faaa 100644 --- a/app/views/instructeurs/procedures/show.html.haml +++ b/app/views/instructeurs/procedures/show.html.haml @@ -91,7 +91,7 @@ = render batch_operation_component .fr-table.fr-table--bordered - %table.table.dossiers-table.hoverable + %table.table.dossiers-table.hoverable.min-height-300 %thead %tr - if batch_operation_component.render?