ucan-wg / ucan-community-web

UCAN community site
https://ucan.xyz/
Apache License 2.0
38 stars 11 forks source link

Fix encoded textarea resizing #15

Closed bgins closed 2 years ago

bgins commented 2 years ago

Summary

This PR fixes the following bugs

The Encoded textarea did not resize after decoding and displaying a UCAN. The problem was that we set a static number of rows for the textarea. The TextArea component requires some value for rows, so the fix was to use a plain <textarea> with the Carbon bx--text-area styles and some CSS grid to set a minimum height and auto-sizing.

I also noticed the show example buttons were in a weird place in the markup, and moved them down to be with the proof explorer.

Test plan (required)

textarea-resize

Closing issues

Closes #5

bgins commented 2 years ago

This is for readjusting the height when the right pane gets bigger, right?

Yep, that's right! To keep them even so the UI doesn't look unbalanced.