Skip to content
代码片段 群组 项目
提交 6f051cf9 编辑于 作者: Martin Wortschack's avatar Martin Wortschack
浏览文件

Fix breakpoint size in awards handler

上级 b22d58b2
No related branches found
No related tags found
无相关合并请求
...@@ -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`;
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册