mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 00:51:03 +08:00
ab58b0cffe
* FIX: Better virtual keyboard detect on Android Firefox has a bug where *sometimes* the visualViewport.height won't be updated when the keyboard pops up until you scroll, making our composer stay hidden behind the keyboard. This commit uses both window.innerHeight and window.visualViewport.height using the minimum of both to check for height changes. For Chrome/Edge we feature detect the new VirtualKeyboard API and opt-into it when the composer opens and use it to detect if a keyboard is being draw. Opting into the API changes how the viewport is calculated so we have to also change how the full height composer is calculated. To minimize breakage we opt-out when the composer component is destroyed. This commit also moves the `--composer-ipad-padding` to only happen on iPads. Bug report at https://meta.discourse.org/t/-/228382 |
||
---|---|---|
.. | ||
components | ||
select-kit | ||
_index.scss | ||
admin_badges.scss | ||
admin_customize.scss | ||
admin_report_counters.scss | ||
admin_report_table.scss | ||
admin_report.scss | ||
admin_reports.scss | ||
alert.scss | ||
buttons.scss | ||
compose.scss | ||
dashboard.scss | ||
directory.scss | ||
discourse.scss | ||
edit-category.scss | ||
emoji.scss | ||
group.scss | ||
header.scss | ||
history.scss | ||
lightbox.scss | ||
login.scss | ||
menu-panel.scss | ||
modal.scss | ||
new-user.scss | ||
personal-message.scss | ||
push-notifications-mobile.scss | ||
reviewables.scss | ||
ring.scss | ||
search.scss | ||
tagging.scss | ||
topic-list.scss | ||
topic-post.scss | ||
topic.scss | ||
upload.scss | ||
user-badges.scss | ||
user.scss |