From 46995ce3d646ab58460ca1a0b8f95bb37a9e98aa Mon Sep 17 00:00:00 2001 From: emilielr Date: Thu, 6 Jun 2024 10:20:50 +0200 Subject: [PATCH 1/2] fix(styling): cleanup and correct color on texts --- .../edit/[id]/components/TileCard/index.tsx | 87 ++++++++----------- 1 file changed, 36 insertions(+), 51 deletions(-) diff --git a/next-tavla/app/(admin)/edit/[id]/components/TileCard/index.tsx b/next-tavla/app/(admin)/edit/[id]/components/TileCard/index.tsx index 8e65b609b..1770ed484 100644 --- a/next-tavla/app/(admin)/edit/[id]/components/TileCard/index.tsx +++ b/next-tavla/app/(admin)/edit/[id]/components/TileCard/index.tsx @@ -159,57 +159,44 @@ function TileCard({ bid, tile }: { bid: TBoardID; tile: TTile }) { onSubmit={reset} onInput={() => setChanged(true)} > -
- Gåavstand - -
- {tile.walkingDistance?.visible ?? ( - - )} - - Vis gåavstand - -
-
-
- - Avganger frem i tid - - - Gåavstand + + Vis gåavstand fra lokasjonen til Tavla til + stoppestedet + +
+ {tile.walkingDistance?.visible ?? ( + + )} + + disabled={tile.walkingDistance ? false : true} + > + Vis gåavstand +
+ Avganger frem i tid + + Vis kun avganger som går om mer enn valgt antall + minutter + + - Kolonner - + Kolonner + Her bestemmer du hvilke kolonner som skal vises i tavlen @@ -233,9 +220,7 @@ function TileCard({ bid, tile }: { bid: TBoardID; tile: TTile }) { ) })}
- - Transportmidler og linjer - + Transportmidler og linjer
{linesByModeSorted.map( ({ transportMode, lines }) => ( From d58783f082078f0065d48cdbe57406e78451a87f Mon Sep 17 00:00:00 2001 From: emilielr Date: Thu, 6 Jun 2024 10:22:30 +0200 Subject: [PATCH 2/2] fix(edit): rename button --- .../app/(admin)/edit/[id]/components/MetaSettings/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/next-tavla/app/(admin)/edit/[id]/components/MetaSettings/index.tsx b/next-tavla/app/(admin)/edit/[id]/components/MetaSettings/index.tsx index 7e2439d16..7803eca45 100644 --- a/next-tavla/app/(admin)/edit/[id]/components/MetaSettings/index.tsx +++ b/next-tavla/app/(admin)/edit/[id]/components/MetaSettings/index.tsx @@ -42,7 +42,7 @@ function MetaSettings({ bid, meta }: { bid: TBoardID; meta?: TMeta }) {
- Lagre tittel + Lagre navn