mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 09:50:37 -06:00
UX: restrict mobile tooltip width to prevent horizontal overflow (#27420)
This commit is contained in:
parent
e44025b687
commit
ebc23b348f
@ -49,6 +49,12 @@
|
|||||||
max-width: 400px;
|
max-width: 400px;
|
||||||
overflow-wrap: break-word;
|
overflow-wrap: break-word;
|
||||||
|
|
||||||
|
.mobile-view & {
|
||||||
|
// tooltips are positioned 5px from the left
|
||||||
|
// - 10px accounts for this and gives 5px space on the right
|
||||||
|
max-width: calc(100dvw - 10px);
|
||||||
|
}
|
||||||
|
|
||||||
.footnote-tooltip-content {
|
.footnote-tooltip-content {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
@ -58,7 +64,7 @@
|
|||||||
|
|
||||||
img {
|
img {
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
max-width: 385px;
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
p {
|
p {
|
||||||
|
Loading…
Reference in New Issue
Block a user