Skip to content

Commit

Permalink
visual tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
lovincyrus committed Jan 17, 2025
1 parent b7973cc commit f92ef63
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
3 changes: 2 additions & 1 deletion web-common/src/features/canvas/CanvasDashboardEmbed.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
{instanceId}
{componentName}
{chartView}
{scale}
{radius}
embed={true}
padding={gapSize}
Expand All @@ -58,6 +57,8 @@
gridCell}
left={Number(component.x) * gridCell}
top={Number(component.y) * gridCell}
rowIndex={Math.floor(Number(component.y))}
columnIndex={Math.floor(Number(component.x))}
/>
{/if}
{/each}
Expand Down
5 changes: 2 additions & 3 deletions web-common/src/features/canvas/Component.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
export let embed = false;
export let radius: number;
export let selected = false;
export let interacting = false;
export let width: number;
export let height: number;
export let chartView = false;
Expand Down Expand Up @@ -132,10 +131,10 @@
</div>
{/if}
<div class="size-full relative {showDragHandle ? 'touch-none' : ''}">
<!-- class:shadow-md={interacting || isHovered} -->
<div
class="size-full overflow-hidden flex flex-col flex-none rounded-sm shadow-md border border-slate-200"
class="size-full overflow-hidden flex flex-col flex-none rounded-sm border border-slate-200"
style:border-radius="{radius}px"
class:shadow-md={isHovered}
>
<ComponentTitle {title} {description} />
{#if renderer && rendererProperties}
Expand Down
2 changes: 0 additions & 2 deletions web-common/src/features/canvas/PreviewElement.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@
<Component
{instanceId}
{i}
{interacting}
{componentName}
{padding}
{radius}
Expand Down Expand Up @@ -136,7 +135,6 @@
<Component
{instanceId}
{i}
{interacting}
{componentName}
{padding}
{radius}
Expand Down

0 comments on commit f92ef63

Please sign in to comment.