This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse
Sam Saffron 0d6839e8a8 UX: adjust algorithm for picking notification count
Our current algorithm for picking the number of notifications to display
when expanding the notifications relies on magic numbers.

Previously we only allowed for header and an estimate of maximum height of
notification container, this is not ideal as there is padding at the bottom
and top of the notification container

This adds a special number for padding.

The longer term fix though is to render the notification panel off screen
then grab the correct count, finally adding it back into view with.

This would allow for large fonts, small fonts, custom themes and much more.
2020-02-05 16:03:44 +11:00
..
adapters FIX: Use new tag routes (#8683) 2020-01-21 19:23:08 +02:00
components UX: Topic progress bar should not flash on desktop 2020-02-05 15:36:39 +11:00
controllers DEV: select-kit 2 (#7998) 2020-02-03 14:22:14 +01:00
helpers DEV: select-kit 2 (#7998) 2020-02-03 14:22:14 +01:00
initializers FEATURE: Use new Badging API 2020-01-10 13:41:35 -03:00
lib DEV: select-kit 2 (#7998) 2020-02-03 14:22:14 +01:00
mixins DEV: Fix function prototype deprecations (#8681) 2020-01-16 18:56:53 +01:00
models DEV: Handle null notification level when generating data attribute (#8851) 2020-02-04 17:05:49 +00:00
pre-initializers FEATURE: Add Tactile feedback on likes 2020-01-30 12:01:52 -03:00
raw-views DEV: Fix function prototype deprecations (#8681) 2020-01-16 18:56:53 +01:00
routes FIX: set showFooter to true on group topic list (#8795) 2020-01-29 12:12:38 -05:00
services DEV: Fix function prototype deprecations (#8681) 2020-01-16 18:56:53 +01:00
templates DEV: Use a string for category data-notification-level, not an integer 2020-02-04 16:05:45 +00:00
widgets UX: adjust algorithm for picking notification count 2020-02-05 16:03:44 +11:00
mapping-router.js.es6 DEV: Remove Discourse.Site in favor of import (#8344) 2019-11-13 12:13:47 -05:00