Skip to content

Commit b4733f8

Browse files
committed
Merge branch 'feat/playground-add-sv-cmd' of github.com:sveltejs/svelte.dev into feat/playground-add-sv-cmd
2 parents 2196e6b + 065a9e4 commit b4733f8

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

packages/repl/src/lib/Input/ComponentSelector.svelte

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -192,15 +192,15 @@
192192

193193
<button
194194
class="copy-button"
195-
title="Copy to clipboard"
196-
aria-label="Copy to clipboard"
195+
title="Copy `npx sv create --from-playground=&quot;...&quot;` to clipboard"
196+
aria-label="Copy `npx sv create --from-playground=&quot;...&quot;` to clipboard"
197197
onclick={() => {
198198
navigator.clipboard.writeText(
199199
`npx sv create --from-playground="${window.location.href}"`
200200
);
201201
}}
202202
>
203-
Copy <code>sv create --from-playground</code>
203+
Set up locally
204204
</button>
205205
</Toolbox>
206206
</div>
@@ -376,8 +376,6 @@
376376
377377
.copy-button {
378378
position: relative;
379-
height: 3.6rem;
380-
margin-right: 2rem;
381379
382380
&::before,
383381
&::after {
@@ -386,10 +384,10 @@
386384
position: absolute;
387385
width: 100%;
388386
height: 100%;
389-
right: 1.1rem;
390-
top: 1.1rem;
387+
right: 0;
388+
top: 0;
391389
background: currentColor;
392-
mask: no-repeat 100% 0% / 1.6rem 1.6rem;
390+
mask: no-repeat calc(100% - 1rem) 50% / 1.6rem 1.6rem;
393391
transition: opacity 0.2s;
394392
transition-delay: 0.6s;
395393
}

0 commit comments

Comments
 (0)