1
0
Fork 0
mirror of synced 2024-09-20 19:33:10 +12:00

Fix bug with responsive css variables

This commit is contained in:
Andrew Kingston 2024-07-31 10:43:25 +01:00
parent fd57f2ffcc
commit fc2fb81205
No known key found for this signature in database

View file

@ -20,7 +20,7 @@ const Devices = {
// Generates the CSS variable for a certain grid param suffix, for the current
// device
const previewDevice = derived(builderStore, $store => $store.device)
const previewDevice = derived(builderStore, $store => $store.previewDevice)
export const getGridVar = derived(previewDevice, device => suffix => {
const prefix = device === Devices.Mobile ? Devices.Mobile : Devices.Desktop
return `--grid-${prefix}-${suffix}`