mirror of
https://github.com/gradio-app/gradio.git
synced 2024-11-21 01:01:05 +08:00
1419538ea7
* asd * changes * fix everything * cleanup * add changeset * fix casing * lockfile * fix casing * fix ci, enable linting * fix test * add changeset * add changeset * delete changeset * fix dirs * fix casing * fix notebooks * fix casing * fix casing * fix casing * fix casing * fix casing * fix casing * fix casing * fix casing --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
36 lines
789 B
Svelte
36 lines
789 B
Svelte
<script lang="ts">
|
|
import Copy from "./Copy.svelte";
|
|
import Download from "./Download.svelte";
|
|
|
|
export let value: string;
|
|
export let language: string;
|
|
</script>
|
|
|
|
<div>
|
|
<Download {value} {language} />
|
|
<Copy {value} />
|
|
</div>
|
|
|
|
<style>
|
|
div {
|
|
display: flex;
|
|
position: absolute;
|
|
top: var(--block-label-margin);
|
|
right: var(--block-label-margin);
|
|
align-items: center;
|
|
|
|
z-index: var(--layer-2);
|
|
transition: 150ms;
|
|
box-shadow: var(--shadow-drop);
|
|
border: 1px solid var(--border-color-primary);
|
|
border-top: none;
|
|
border-right: none;
|
|
border-radius: var(--block-label-right-radius);
|
|
background: var(--block-label-background-fill);
|
|
overflow: hidden;
|
|
color: var(--block-label-text-color);
|
|
font: var(--font);
|
|
font-size: var(--button-small-text-size);
|
|
}
|
|
</style>
|