Add a customisable shadow to canvas boxes
A box can now cast a shadow, independent of its frame: ticking "Shadow" in the box editor gives a hard offset shadow, and Hard/Soft/Glow presets or any typed CSS box-shadow value customise it. The value is stored on Box and Component and carried through duplicates, components and layouts. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -36,6 +36,9 @@ func (r *mutationResolver) CreateBox(ctx context.Context, input model.CreateBoxI
|
||||
if input.Framed != nil {
|
||||
box.Framed = *input.Framed
|
||||
}
|
||||
if input.Shadow != nil {
|
||||
box.Shadow = *input.Shadow
|
||||
}
|
||||
if input.HideOnMobile != nil {
|
||||
box.HideOnMobile = *input.HideOnMobile
|
||||
}
|
||||
@@ -102,6 +105,9 @@ func (r *mutationResolver) UpdateBox(ctx context.Context, id int, input model.Up
|
||||
if input.Framed != nil {
|
||||
box.Framed = *input.Framed
|
||||
}
|
||||
if input.Shadow != nil {
|
||||
box.Shadow = *input.Shadow
|
||||
}
|
||||
if input.HideOnMobile != nil {
|
||||
box.HideOnMobile = *input.HideOnMobile
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user