Tidy up and remove old code and simplify some selectors

This commit is contained in:
Andrew Kingston 2024-08-10 20:08:49 +01:00
parent 533a597a0b
commit 304c244943
No known key found for this signature in database
3 changed files with 4 additions and 5 deletions

View File

@ -708,7 +708,7 @@
border-radius: 4px !important; border-radius: 4px !important;
transition: padding 260ms ease-out, border 260ms ease-out; transition: padding 260ms ease-out, border 260ms ease-out;
} }
.interactive :global(*) { .interactive {
cursor: default; cursor: default !important;
} }
</style> </style>

View File

@ -198,7 +198,7 @@
overflow: hidden; overflow: hidden;
height: 410px; height: 410px;
} }
div.in-builder :global(*) { div.in-builder {
pointer-events: none; pointer-events: none !important;
} }
</style> </style>

View File

@ -36,7 +36,6 @@
// Set ephemeral styles // Set ephemeral styles
$: instance = componentStore.actions.getComponentInstance(id) $: instance = componentStore.actions.getComponentInstance(id)
$: $instance?.setEphemeralStyles(enrichComponentStyles($styles)) $: $instance?.setEphemeralStyles(enrichComponentStyles($styles))
$: $styles, console.log("new styles")
// Sugar for a combination of both min and max // Sugar for a combination of both min and max
const minMax = (value, min, max) => Math.min(max, Math.max(min, value)) const minMax = (value, min, max) => Math.min(max, Math.max(min, value))