Skip to content

Commit

Permalink
[Improving] CSS fix for overflow
Browse files Browse the repository at this point in the history
Invisible parts of the iFrame are overlapping links below.
This fix from couchbaselabs/lex-bot-ui#15
(vendored in here) should fix.
  • Loading branch information
osfameron committed Apr 2, 2024
1 parent 25c618b commit 02783e7
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 9 deletions.
33 changes: 25 additions & 8 deletions src/css/chatbot.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

.lex-web-ui-iframe iframe {
border-radius: 8px 8px 10px 10px;
overflow: hidden;
/* overflow: hidden; */
width: 100%;
height: 100%;
}
Expand All @@ -25,10 +25,21 @@
}

.lex-web-ui-iframe--minimize {
max-width: 230px !important;
max-height: 185px !important;
max-width: 90px !important;
max-height: 90px !important;
border-radius: 85px !important;
min-width: 230px !important;
min-width: 90px !important;
}

.lex-web-ui-iframe--minimize:hover {
max-width: 200px !important;
}

.lex-web-ui-iframe--minimize.add-space-for-bubble {
max-width: 250px !important;
max-height: 150px !important;
border-radius: 85px !important;
min-width: 250px !important;
}

.lex-web-ui-iframe--maximize {
Expand Down Expand Up @@ -85,10 +96,16 @@
min-width: 90vw !important;
}

.lex-web-ui-iframe.lex-web-ui-iframe--show.lex-web-ui-iframe--minimize {
max-width: 300px !important;
max-height: 185px !important;
/* .lex-web-ui-iframe.lex-web-ui-iframe--show.lex-web-ui-iframe--minimize {
max-width: 245px !important;
max-height: 145px !important;
border-radius: 85px !important;
min-width: 245px !important;
} */
.lex-web-ui-iframe.lex-web-ui-iframe--show.lex-web-ui-iframe--minimize--bubble {
max-width: 245px !important;
max-height: 145px !important;
border-radius: 85px !important;
min-width: 230px !important;
min-width: 245px !important;
}
}
Loading

0 comments on commit 02783e7

Please sign in to comment.