fix: styles on .user-prompt-buttons #1323
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As in this snapshot, if you create empty prompts without editing the conent, nothing is wrong see A, but as long as you have long contents, well, the button groups starts displaying incorrectly, see B.
The reason is,
it only leaves
100px
for the 3 buttons with full prompt contents. I don't think to reduce the max width of the content is a good idea, because we also need to display the content in mobile devices.so the only way i can do is to slim the buttons, originally, each button has a padding of
10px
, which takes up20 px
space, so i reduced it topadding: 7px;
, not only that, i see the gap between two buttons from5px
to2px
.by the way, I recommend using css properties of
column-gap
orrow-gap
in bothflex
andgrid
layouts , which is sightly better thanalso I commented out
height: 100%;
, if you need, you may change it back.