Show small disabled seed button on mobile

This commit is contained in:
Rūdolfs Ošiņš
2024-07-10 15:37:08 +02:00
parent b9704a0739
commit b3bf6d17ff
2 changed files with 17 additions and 2 deletions
+8 -2
View File
@@ -7,6 +7,7 @@
export let projectId: string;
export let seedCount: number;
export let disabled: boolean = false;
</script>
<style>
@@ -32,12 +33,16 @@
background-color: var(--color-fill-secondary-counter);
color: var(--color-foreground-match-background);
}
.disabled {
background-color: var(--color-fill-float-hover);
color: var(--color-foreground-disabled);
}
</style>
<Popover popoverPositionTop="2.5rem" popoverPositionRight="0">
<Button
slot="toggle"
disabled={false}
{disabled}
let:toggle
on:click={() => {
toggle();
@@ -45,9 +50,10 @@
variant="secondary-toggle-off">
<IconSmall name="seedling" />
<span class="title-counter">
Seed
<span class="global-hide-on-mobile-down">Seed</span>
<span
class="counter not-seeding"
class:disabled
style:font-weight="var(--font-weight-regular)">
{seedCount}
</span>
@@ -90,6 +90,15 @@
<CloneButton {baseUrl} id={project.id} name={project.name} />
<SeedButton seedCount={project.seeding} projectId={project.id} />
</div>
<div
style:display="flex"
style:gap="0.5rem"
class="global-hide-on-small-desktop-up">
<SeedButton
disabled
seedCount={project.seeding}
projectId={project.id} />
</div>
</div>
</div>
<div class="id">