mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
tippy: Initialize maxWidth in em units.
This commit is contained in:
@@ -53,7 +53,8 @@ export const EXTRA_LONG_HOVER_DELAY: [number, number] = [1500, 20];
|
||||
// documentation for default properties.
|
||||
tippy.default.setDefaultProps({
|
||||
// Tooltips shouldn't take more space than mobile widths.
|
||||
maxWidth: 300,
|
||||
// 300px at 14px/1em
|
||||
maxWidth: "21.4286em",
|
||||
delay: INSTANT_HOVER_DELAY,
|
||||
placement: "top",
|
||||
// Disable animations to make the tooltips feel snappy.
|
||||
|
||||
Reference in New Issue
Block a user