Skip to content

Commit

Permalink
Document doc buttons & Fix textaraand button sizes
Browse files Browse the repository at this point in the history
Fix the padding around the input and output textareas. The addition of
`<!DOCTYPE html>`, which disables quirks mode, requires additional CSS
to ensure textareas don't overflow the box that contains them.

The `DOCTYPE` tag also also requires `line-height: 0` to prevent the doc
buttons from stretching. Fix that, and also document those buttons.
  • Loading branch information
theory committed Dec 22, 2024
1 parent b359e43 commit 78819f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Usage

On load, the form will be filled with sample JSON and a randomly-selected
example query. Hit the "Run Query" button to see the values the path query
selects from the JSON.
selects from the JSON appear in the "Query Output" field.

To try your own, paste the JSON to query into the "JSON" field and input the
JSONpath query into the "Path" field, then hit the "Run Query" button.
Expand Down
1 change: 1 addition & 0 deletions src/play.css
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ body ul, body ol {
padding: .5rem;
border-radius: .5rem;
max-height: 40vh;
box-sizing: border-box;
}

footer {
Expand Down

0 comments on commit 78819f1

Please sign in to comment.