Browse Source

Only apply to small components (button, headline)

master
Mel O'Hagan 5 years ago
parent
commit
adfb8d7c56
  1. 2
      packages/client/src/components/preview/SettingsBar.svelte

2
packages/client/src/components/preview/SettingsBar.svelte

@ -67,7 +67,7 @@
} }
//If element is at the very top of the screen, put the bar below the element //If element is at the very top of the screen, put the bar below the element
if (elBounds.top < elBounds.height) { if (elBounds.top < elBounds.height && elBounds.height < 80) {
newTop = elBounds.bottom + verticalOffset newTop = elBounds.bottom + verticalOffset
} }

Loading…
Cancel
Save