diff --git a/src/JSONEditor.scss b/src/JSONEditor.scss index 491494e..275571d 100644 --- a/src/JSONEditor.scss +++ b/src/JSONEditor.scss @@ -7,6 +7,7 @@ min-height: 150px; display: flex; flex-direction: column; + position: relative; .menu { font-family: $font-family-menu; @@ -59,6 +60,27 @@ z-index: 1; } } + + .hidden-input-label { + position: absolute; + right: 0; + top: 0; + width: 0; + height: 0; + + .hidden-input { + width: 0; + height: 0; + padding: 0; + border: 0; + outline: none; + visibility: hidden; + + &.visible { + visibility: visible; + } + } + } .contents { flex: 1; diff --git a/src/JSONEditor.svelte b/src/JSONEditor.svelte index b818ad1..c74d305 100644 --- a/src/JSONEditor.svelte +++ b/src/JSONEditor.svelte @@ -1,5 +1,5 @@