Reputation: 1121
I'm trying to make an indicator to scroll on a modal, but the text is breaking through the borders on Safari, and from I can see all versions.
<div class='d-flex justify-center mb-0 pb-0 overlay' style="width: 100%;">
<span>Scroll down</span> <v-icon>keyboard_arrow_down</v-icon>
</div>
Here's what it looks like on Safari:
Upvotes: 1
Views: 145
Reputation: 196
It seems that Safari isn't taking the line height into account, but I don't know why (though I do see lots of line-height bug complaints about Safari when I Google it).
In any case setting:
min-height: 1.5em
on this element:
<div class="d-flex justify-center mb-0 pb-0 overlay" style="width: 100%;">
(because the line-height
on the text inside is 1.5em) should make it look right.
Upvotes: 1