Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcnuttandrew committed Sep 19, 2024
1 parent e6ed9c2 commit ca0030f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions apps/color-buddy/src/content-modules/Manage.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
.filter((x) => pal.folder !== x)
.map((x) => {
return {
name: `Move to ${x || "root"}`,
name: `Move to ${x || "Home"}`,
action: () => {
const newPals = [...$colorStore.palettes];
newPals[paletteIdx] = { ...pal, folder: x };
Expand Down Expand Up @@ -179,7 +179,7 @@
name: folder,
})}
>
{folder.length ? `${folder}` : "root"}
{folder.length ? `${folder}` : "Home"}
</button>
{#if folder !== ""}
<div class="px-1">
Expand Down
13 changes: 7 additions & 6 deletions apps/color-buddy/src/example/ExampleAlaCarte.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import Vega from "./Vega.svelte";
import Swatches from "./Swatches.svelte";
import Tooltip from "../components/Tooltip.svelte";
import { buttonStyle } from "../lib/styles";
import { buttonStyle, simpleTooltipRowStyle } from "../lib/styles";
export let exampleIdx: number;
export let setExampleIdx: (idx: number) => void;
export let paletteIdx: number | "tempPal";
Expand All @@ -21,10 +21,11 @@
</script>

<div class="flex flex-col">
<Tooltip>
<div slot="content" class="max-w-md">
<div class="text-sm">Thumbnail</div>
<Tooltip bg="bg-white">
<div slot="content" class="max-w-md flex flex-col">
<button
class={buttonStyle}
class={simpleTooltipRowStyle}
on:click={() => {
setExampleIdx(-1);
}}
Expand All @@ -33,7 +34,7 @@
</button>
{#each $exampleStore.examples as example, idx}
<button
class={buttonStyle}
class={simpleTooltipRowStyle}
on:click={() => {
setExampleIdx(idx);
}}
Expand All @@ -48,7 +49,7 @@
class={`${buttonStyle} pl-0`}
on:click={toggle}
>
Change example: {example?.name || "Swatches"}
{example?.name || "Swatches"}
</button>
</Tooltip>
</div>
Expand Down

0 comments on commit ca0030f

Please sign in to comment.