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/widgets
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
..
actions-summary.js.es6 FEATURE: Flag count in post menu 2019-05-06 16:13:31 -04:00
avatar-flair.js.es6 Upgrade to FontAwesome 5 (take two) (#6673) 2018-11-26 16:49:57 -05:00
button.js.es6 FEATURE: New 'Reviewable' model to make reviewable items generic 2019-03-28 12:45:10 -04:00
category-link.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
component-connector.js.es6 DEV: select-kit 2 (#7998) 2020-02-03 14:22:14 +01:00
connector.js.es6 FIX: Prettier to fix build (#8311) 2019-11-07 12:07:08 -06:00
custom-notification-item.js.es6 FIX: Use title attribute for notification items. (#7840) 2019-07-03 10:48:13 -04:00
decorator-helper.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
default-notification-item.js.es6 REFACTOR: Use a module for Ember.isEmpty 2019-11-01 13:50:15 -04:00
discourse-tags.js.es6 FEATURE: displays tags in search menu results when enabled (#7819) 2019-06-27 19:26:14 +02:00
embedded-post.js.es6 FIX: Do not replace text of collapsed ignore posts (#7422) 2019-04-24 13:54:46 +01:00
emoji.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
footer-nav.js.es6 UI: Footer nav fixes 2019-04-15 15:25:40 -04:00
glue.js.es6 DEV: call destroy() on widget when glue is cleaned up (#8338) 2019-11-13 09:28:43 +01:00
group-message-summary-notification-item.js.es6 fix prettier linting (#7809) 2019-06-26 15:26:02 +02:00
hamburger-categories.js.es6 REFACTOR: Remove Discourse.Category constants 2019-11-08 13:31:00 -05:00
hamburger-menu.js.es6 DEV: give categories-separator class to HR after cateogries 2019-11-18 17:31:01 +11:00
hbs-compiler.js.es6 DEV: enable no-alert & no-console eslint rules 2018-11-14 23:17:56 +01:00
header-contents.js.es6 DEV: Upgrade our widget handlebars compiler 2019-05-02 15:47:57 -04:00
header-topic-info.js.es6 FIX: applies correct styles to icon and attempts to dry code (#8739) 2020-01-17 18:20:23 +01:00
header.js.es6 FEATURE: Allow scoping search to tag (#8345) 2019-11-14 10:40:26 +10:00
home-logo.js.es6 FIX: Properly support defaults for upload site settings. 2019-03-13 16:36:57 +08:00
hooks.js.es6 DEV: new widget hooks mousemove/mouseup/mousedown/doubleclick (#8807) 2020-01-29 17:19:12 +01:00
invitee-accepted-notification-item.js.es6 fix prettier linting (#7809) 2019-06-26 15:26:02 +02:00
liked-consolidated-notification-item.js.es6 DEV: Provide radix argument to parseInt (#8281) 2019-11-12 10:47:42 +01:00
liked-notification-item.js.es6 Pass data to description to prevent duplication 2019-06-26 09:01:25 -04:00
link.js.es6 DEV: Provide radix argument to parseInt (#8281) 2019-11-12 10:47:42 +01:00
membership-request-accepted-notification-item.js.es6 FEATURE: Send notification when member was accepted to group. (#7614) 2019-08-06 13:29:46 +03:00
membership-request-consolidated-notification-item.js.es6 DEV: always trigger 'notification_created' event. 2019-11-28 04:31:55 +05:30
menu-panel.js.es6 Fix Prettier using correct version (1.19.1) 2019-11-15 10:34:26 -05:00
post-admin-menu.js.es6 FIX: Rename deprecated icons, allow custom icons in badges 2019-07-16 11:13:44 -04:00
post-cooked.js.es6 FIX: Show poll voters in Oneboxed posts. (#7768) 2019-10-24 14:00:25 +03:00
post-edits-indicator.js.es6 FIX: Rename deprecated icons, allow custom icons in badges 2019-07-16 11:13:44 -04:00
post-gap.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
post-links.js.es6 SECURITY: updates lodash from 1.3.0 to 4.17.5 (#7546) 2019-05-16 10:34:19 +02:00
post-menu.js.es6 FEATURE: Add Tactile feedback on likes 2020-01-30 12:01:52 -03:00
post-placeholder.js.es6 UX: Changed post stream placeholder to animation (#7434) 2019-04-26 17:29:48 +01:00
post-small-action.js.es6 FIX: computed is part of @ember/object not @ember/object/computed 2019-11-13 11:58:09 -05:00
post-stream.js.es6 Revert "Revert Ember.run refactors" 2019-10-30 09:48:24 -04:00
post.js.es6 FIX: More Promise uses that were not imported 2019-11-19 15:58:40 -05:00
poster-name.js.es6 FIX: Show same username or name for post notices. (#7862) 2019-07-19 11:05:48 +03:00
private-message-map.js.es6 FIX: Move makeArray to discourse-common 2019-11-01 13:50:15 -04:00
quick-access-bookmarks.js.es6 FEATURE: Quick access panels in user menu (#8073) 2019-09-09 11:03:57 -04:00
quick-access-item.js.es6 DEV: lint file 2019-12-11 10:48:58 +11:00
quick-access-messages.js.es6 FIX: Do not escape fancy_title again. (#8095) 2019-09-13 10:04:14 -04:00
quick-access-notifications.js.es6 FEATURE: Quick access panels in user menu (#8073) 2019-09-09 11:03:57 -04:00
quick-access-panel.js.es6 UX: adjust algorithm for picking notification count 2020-02-05 16:03:44 +11:00
quick-access-profile.js.es6 DEV: Update deprecated icon names 2019-12-13 15:23:31 -05:00
raw-html.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
search-menu-controls.js.es6 DEV: lint files 2019-11-14 11:52:29 +11:00
search-menu-results.js.es6 UX: Standardize tag display in search menu results 2019-10-22 14:19:24 -04:00
search-menu.js.es6 REFACTOR: Remove Ember.get 2019-11-01 13:50:15 -04:00
time-gap.js.es6 FIX: Alignment for small-actions, gap, removing unneeded clearfix 2019-01-21 17:57:47 -05:00
toggle-topic-summary.js.es6 FIX: Set a minimum reading time per post. (#7842) 2019-07-19 18:15:38 +03:00
topic-admin-menu.js.es6 FIX: Only show admin wrench when there are actions on mobile 2019-12-31 12:35:44 +00:00
topic-map.js.es6 FEATURE: Use the 'ugc' rel attribute alongside 'nofollow' 2019-10-14 15:21:48 -03:00
topic-status.js.es6 DEV: Added qunit test functions and did minor refactoring 2019-03-13 18:38:27 +05:30
topic-timeline.js.es6 DEV: select-kit 2 (#7998) 2020-02-03 14:22:14 +01:00
user-menu.js.es6 FIX: PM glyph in user-menu should always be shown to staff 2019-11-18 17:25:07 +08:00
user-notifications-large.js.es6 fix prettier linting (#7809) 2019-06-26 15:26:02 +02:00
widget.js.es6 DEV: new widget hooks mousemove/mouseup/mousedown/doubleclick (#8807) 2020-01-29 17:19:12 +01:00