Skip to content

Commit 02783e7

Browse files
committed
[Improving] CSS fix for overflow
Invisible parts of the iFrame are overlapping links below. This fix from couchbaselabs/lex-bot-ui#15 (vendored in here) should fix.
1 parent 25c618b commit 02783e7

File tree

2 files changed

+27
-9
lines changed

2 files changed

+27
-9
lines changed

src/css/chatbot.css

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
.lex-web-ui-iframe iframe {
1717
border-radius: 8px 8px 10px 10px;
18-
overflow: hidden;
18+
/* overflow: hidden; */
1919
width: 100%;
2020
height: 100%;
2121
}
@@ -25,10 +25,21 @@
2525
}
2626

2727
.lex-web-ui-iframe--minimize {
28-
max-width: 230px !important;
29-
max-height: 185px !important;
28+
max-width: 90px !important;
29+
max-height: 90px !important;
3030
border-radius: 85px !important;
31-
min-width: 230px !important;
31+
min-width: 90px !important;
32+
}
33+
34+
.lex-web-ui-iframe--minimize:hover {
35+
max-width: 200px !important;
36+
}
37+
38+
.lex-web-ui-iframe--minimize.add-space-for-bubble {
39+
max-width: 250px !important;
40+
max-height: 150px !important;
41+
border-radius: 85px !important;
42+
min-width: 250px !important;
3243
}
3344

3445
.lex-web-ui-iframe--maximize {
@@ -85,10 +96,16 @@
8596
min-width: 90vw !important;
8697
}
8798

88-
.lex-web-ui-iframe.lex-web-ui-iframe--show.lex-web-ui-iframe--minimize {
89-
max-width: 300px !important;
90-
max-height: 185px !important;
99+
/* .lex-web-ui-iframe.lex-web-ui-iframe--show.lex-web-ui-iframe--minimize {
100+
max-width: 245px !important;
101+
max-height: 145px !important;
102+
border-radius: 85px !important;
103+
min-width: 245px !important;
104+
} */
105+
.lex-web-ui-iframe.lex-web-ui-iframe--show.lex-web-ui-iframe--minimize--bubble {
106+
max-width: 245px !important;
107+
max-height: 145px !important;
91108
border-radius: 85px !important;
92-
min-width: 230px !important;
109+
min-width: 245px !important;
93110
}
94111
}

0 commit comments

Comments
 (0)