Skip to content

Commit

Permalink
css
Browse files Browse the repository at this point in the history
  • Loading branch information
cheleb committed Nov 27, 2023
1 parent 7fb488a commit 888f0c6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
8 changes: 8 additions & 0 deletions examples/client/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@
<!-- Loads the Quicksand font -->
<link href="https://fonts.googleapis.com/css?family=Quicksand:300,400,500,700" rel="stylesheet" />
<title>Demo Laminar SAP UI5 bindings</title>
<style>
.panel {
margin: 1rem;
padding: 1rem;
border: 1px solid #ccc;
border-radius: 1rem;
}
</style>
</head>

<body>
Expand Down
6 changes: 2 additions & 4 deletions modules/core/src/main/scala/dev/cheleb/scalamigen/Form.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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[_]]

Expand Down

0 comments on commit 888f0c6

Please sign in to comment.