We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd39e77 commit 751eb2fCopy full SHA for 751eb2f
src/Json/Form.elm
@@ -25,7 +25,7 @@ import Json.Schema
25
import Json.Schema.Definitions exposing (..)
26
import Json.Schema.Validation exposing (Error)
27
import Json.Value as JsonValue exposing (JsonValue(..))
28
-import JsonFormUtil as Util exposing (getUiSpec, jsonValueToString)
+import JsonFormUtil as Util exposing (getTitle, getUiSpec, jsonValueToString)
29
import Task
30
31
@@ -210,14 +210,20 @@ viewObject model schema properties isRequired isDisabled path =
210
211
_ ->
212
[]
213
+
214
+ title =
215
+ schema |> getTitle isRequired
216
in
217
if hidden then
218
text ""
219
220
else
- properties
- |> iterateOverSchemata
- |> div []
221
+ div [ class "jf-nested-object" ]
222
+ [ Html.h3 [] [ text title ]
223
+ , properties
224
+ |> iterateOverSchemata
225
+ |> div []
226
+ ]
227
228
229
updateConfig : Config -> Model -> Model
stylesheets/app.css
@@ -5,6 +5,8 @@
5
--color-active--054: #8fd9e3;
6
box-sizing: border-box;
7
--form-background: #fafafa;
8
+ --object-heading-indent: 0px;
9
+ --nested-object-padding: 0px;
10
}
11
12
.app-topbar {
stylesheets/checkbox.css
@@ -64,6 +64,7 @@
64
65
.jf-checkbox__helper-text {
66
font-size: 12px;
67
+ padding-top: 4px;
68
padding-right: 32px;
69
color: rgba(0, 0, 0, 0.54);
70
stylesheets/globals.css
@@ -5,7 +5,6 @@
--color-inactive: #8a8a8a;
--color-invalid: #c72227;
- --color-swatch--500: #009688;
stylesheets/json-form.css
@@ -10,3 +10,15 @@
.array-item-add .button {
font-size: 16px;
13
14
+h3 + div {
15
+ padding: var(--object-heading-indent);
16
+}
17
18
+.jf-nested-object {
19
+ padding: var(--nested-object-padding);
20
21
22
+.jf-json-form {
23
+ background: var(--form-background);
24
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments