From 888f0c6aef0f154477636b91689e4eb6099a4a79 Mon Sep 17 00:00:00 2001 From: Olivier NOUGUIER Date: Mon, 27 Nov 2023 23:02:17 +0100 Subject: [PATCH] css --- .vscode/tasks.json | 2 +- examples/client/index.html | 8 ++++++++ .../core/src/main/scala/dev/cheleb/scalamigen/Form.scala | 6 ++---- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index d3de3ad..ae07451 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -19,7 +19,7 @@ { "label": "npmInstall", "type": "shell", - "command": "pushd examples/client; npm i; popd; NODE_OPTIONS='--openssl-legacy-provider' DEV=1 sbt \"client/fastLinkJS\"", + "command": "pushd examples/client; npm i; popd; NODE_OPTIONS='--openssl-legacy-provider' DEV=1 sbt \"generator/compile; client/fastLinkJS\"", "presentation": { "panel": "dedicated", "group": "runDevCmd", diff --git a/examples/client/index.html b/examples/client/index.html index f13fb16..f098f7a 100644 --- a/examples/client/index.html +++ b/examples/client/index.html @@ -10,6 +10,14 @@ Demo Laminar SAP UI5 bindings + diff --git a/modules/core/src/main/scala/dev/cheleb/scalamigen/Form.scala b/modules/core/src/main/scala/dev/cheleb/scalamigen/Form.scala index c86c37a..6a1e52a 100644 --- a/modules/core/src/main/scala/dev/cheleb/scalamigen/Form.scala +++ b/modules/core/src/main/scala/dev/cheleb/scalamigen/Form.scala @@ -97,11 +97,9 @@ object Form extends AutoDerivation[Form] { values: List[A] = List.empty )(using factory: WidgetFactory): HtmlElement = factory - .renderPanel(caseClass.typeInfo.full) + .renderPanel(caseClass.typeInfo.short) .amend( - // _.id := caseClass.typeInfo.full, - // _.headerText := caseClass.typeInfo.full, - // _.headerLevel := TitleLevel.H3, + className := "panel panel-default", caseClass.params.map { param => val isOption = param.deref(variable.now()).isInstanceOf[Option[_]]