Skip to content

Commit

Permalink
fix breakpoint speed dial menu
Browse files Browse the repository at this point in the history
  • Loading branch information
NFriedo committed Mar 3, 2025
1 parent ef96659 commit 57eaa75
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/templates/DefaultWireframe.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<slot name="fab">
<speed-dial-menu
class="wireframe-fab"
:direction="lgAndDown ? 'top' : 'bottom'"
:direction="mdAndDown ? 'top' : 'bottom'"
:orientation="'right'"
:icon="fabItems.icon"
:href="fabItems.href"
Expand Down Expand Up @@ -127,7 +127,7 @@ defineOptions({
});
const slots = useSlots();
const { lgAndDown } = useDisplay();
const { mdAndDown } = useDisplay();
const showDivider = computed(() => {
return !props.hideBorder && !!(props.headline || slots.header);
Expand Down
4 changes: 2 additions & 2 deletions src/modules/ui/speed-dial-menu/SpeedDialMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,15 @@ const actions = computed(() => {
const isMenu = computed(() => actions.value.length > 0);
const isMenuOpen = ref(false);
const { lgAndDown } = useDisplay();
const { mdAndDown } = useDisplay();
const { y: scrollOffsetY } = useWindowScroll();
const isForceCollapseOnMobileScroll = ref(false);
watchThrottled(
scrollOffsetY,
(newVal, oldVal) => {
if (!lgAndDown.value) {
if (!mdAndDown.value) {
isForceCollapseOnMobileScroll.value = false;
return;
}
Expand Down

0 comments on commit 57eaa75

Please sign in to comment.