From 3d0e9206cdf7ab7b50b35790af1cbe46b108d033 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tanguy=20G=C3=A9r=C3=B4me?= Date: Tue, 6 Jan 2026 01:01:17 +0200 Subject: [PATCH] Constrain tables/grids to fix in viewwidth --- frontend/src/App.tsx | 50 ++++++++++++++++++++++-------------------- frontend/src/index.css | 26 +++++++++++++++------- 2 files changed, 44 insertions(+), 32 deletions(-) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index e6d08e7..9cce067 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -329,30 +329,32 @@ function Home() { - - - {methods?.map((method: any) => { - const coffeeFound = coffees.find((coffee: any) => coffee.id === method.coffee_id) - const grinderFound = grinders.find((grinder: any) => grinder.id === method.grinder_id) - const brewerFound = brewers.find((brewer: any) => brewer.id === method.brewer_id) - const isRandomlySelected = (randomMethodId && method.id === randomMethodId) - || (randomMix && method.coffee_id === randomMix?.coffeeId && method.grinder_id === randomMix?.grinderId && method.brewer_id === randomMix?.brewerId) - return ( - - - - - - - - - - - - ) - })} - -
{coffeeFound.name}{method.coffee_amount_g} g{grinderFound.name}{method.grind_setting}{brewerFound.name}{method.water_amount_ml} ml{method.water_temperature_c} °CBloom {method.blooming_time_sec} secBrew {method.brewing_time_sec} sec
+
+ + + {methods?.map((method: any) => { + const coffeeFound = coffees.find((coffee: any) => coffee.id === method.coffee_id) + const grinderFound = grinders.find((grinder: any) => grinder.id === method.grinder_id) + const brewerFound = brewers.find((brewer: any) => brewer.id === method.brewer_id) + const isRandomlySelected = (randomMethodId && method.id === randomMethodId) + || (randomMix && method.coffee_id === randomMix?.coffeeId && method.grinder_id === randomMix?.grinderId && method.brewer_id === randomMix?.brewerId) + return ( + + + + + + + + + + + + ) + })} + +
{coffeeFound.name}{method.coffee_amount_g} g{grinderFound.name}{method.grind_setting}{brewerFound.name}{method.water_amount_ml} ml{method.water_temperature_c} °CBloom {method.blooming_time_sec} secBrew {method.brewing_time_sec} sec
+