from Improve the appearance of the ✅ dialog Fix right gap in Scrapbox Dialog
after:
before:
movie:
Before, we had to name the content in the items of flex by class name and apply CSS to control the size.
The div that wraps the button is fixed to the size of its content with flex-basis: auto;.
The div in the input field is filled with a fixed value of basis, and then grow is used to fill the available space.
div.input-icon {
flex-basis: 120px;
flex-grow: 1;
}
div.input-icon > div {
width: 100%;
}
This page is auto-translated from [/nishio/✅Scrapbox Dialogの右の隙間を修正](https://scrapbox.io/nishio/✅Scrapbox Dialogの右の隙間を修正) using DeepL. If you looks something interesting but the auto-translated English is not good enough to understand it, feel free to let me know at @nishio_en. I'm very happy to spread my thought to non-Japanese readers.