Fix bug with responsive css variables
This commit is contained in:
parent
fd57f2ffcc
commit
fc2fb81205
|
@ -20,7 +20,7 @@ const Devices = {
|
||||||
|
|
||||||
// Generates the CSS variable for a certain grid param suffix, for the current
|
// Generates the CSS variable for a certain grid param suffix, for the current
|
||||||
// device
|
// device
|
||||||
const previewDevice = derived(builderStore, $store => $store.device)
|
const previewDevice = derived(builderStore, $store => $store.previewDevice)
|
||||||
export const getGridVar = derived(previewDevice, device => suffix => {
|
export const getGridVar = derived(previewDevice, device => suffix => {
|
||||||
const prefix = device === Devices.Mobile ? Devices.Mobile : Devices.Desktop
|
const prefix = device === Devices.Mobile ? Devices.Mobile : Devices.Desktop
|
||||||
return `--grid-${prefix}-${suffix}`
|
return `--grid-${prefix}-${suffix}`
|
||||||
|
|
Loading…
Reference in New Issue