Add vertically compact layout for touch keyboard devices

This commit is contained in:
Adrien Maston
2026-01-23 12:58:42 +01:00
parent 97a1c29b0c
commit 65b2db0ec8
2 changed files with 8 additions and 0 deletions
+7
View File
@@ -6,6 +6,13 @@
&.public {
grid-template-rows: auto 1fr auto;
}
&.compact-on-touch {
@media (any-hover: none) {
grid-template-rows: auto 1fr auto;
min-height: unset;
}
}
}
/* Required for the card column page on mobile, but not needed otherwise */
+1
View File
@@ -1,4 +1,5 @@
<% @page_title = "Create a new board" %>
<% @body_class = "compact-on-touch" %>
<div class="panel panel--centered">
<%= bridged_form_with model: @board, class: "flex flex-column gap", data: { controller: "form", action: "submit->form#preventEmptySubmit" } do |form| %>