fix: Update widget option button style to handle long text (#3030)

Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
This commit is contained in:
Brent 2021-09-19 17:42:54 +02:00 committed by GitHub
parent fa2db5a729
commit dcbbb09ebd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -41,10 +41,11 @@ export default {
@import '~widget/assets/scss/variables.scss'; @import '~widget/assets/scss/variables.scss';
.option { .option {
border: 1px solid $color-woot;
border-radius: $space-jumbo; border-radius: $space-jumbo;
border: 1px solid $color-woot;
float: left; float: left;
margin: $space-smaller; margin: $space-smaller;
max-width: 100%;
.option-button { .option-button {
background: transparent; background: transparent;
@ -52,7 +53,11 @@ export default {
border: 0; border: 0;
color: $color-woot; color: $color-woot;
cursor: pointer; cursor: pointer;
height: auto;
line-height: 1.5;
min-height: $space-two * 2;
text-align: left; text-align: left;
white-space: normal;
span { span {
display: inline-block; display: inline-block;