Commit 6f051cf9 authored by Martin Wortschack's avatar Martin Wortschack

Fix breakpoint size in awards handler

parent b22d58b2
...@@ -266,7 +266,7 @@ export class AwardsHandler { ...@@ -266,7 +266,7 @@ export class AwardsHandler {
top: `${$addBtn.offset().top + $addBtn.outerHeight()}px`, top: `${$addBtn.offset().top + $addBtn.outerHeight()}px`,
}; };
// for xs screen we position the element on center // for xs screen we position the element on center
if (bp.getBreakpointSize() === 'xs') { if (bp.getBreakpointSize() === 'xs' || bp.getBreakpointSize() === 'sm') {
css.left = '5%'; css.left = '5%';
} else if (position === 'right') { } else if (position === 'right') {
css.left = `${$addBtn.offset().left - $menu.outerWidth() + 20}px`; css.left = `${$addBtn.offset().left - $menu.outerWidth() + 20}px`;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment