ui: Ensure themes menu kept in screen
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
23d5ea7c97
commit
a255480195
@ -19,23 +19,32 @@
|
|||||||
Scénarii
|
Scénarii
|
||||||
</DropdownToggle>
|
</DropdownToggle>
|
||||||
<DropdownMenu class="niceborder" end>
|
<DropdownMenu class="niceborder" end>
|
||||||
{#each Object.keys($themes) as th, index}
|
<div>
|
||||||
<DropdownItem href="/{$themes[th].urlid}">
|
{#each Object.keys($themes) as th, index}
|
||||||
{$themes[th].name}
|
<DropdownItem href="/{$themes[th].urlid}">
|
||||||
{#if $max_solved > 1 && $themes[th].solved == $max_solved}
|
{$themes[th].name}
|
||||||
<Badge color="danger">
|
{#if $max_solved > 1 && $themes[th].solved == $max_solved}
|
||||||
<Icon name="heart-fill" />
|
<Badge color="danger">
|
||||||
|
<Icon name="heart-fill" />
|
||||||
|
</Badge>
|
||||||
|
{/if}
|
||||||
|
{#if $themes[th].exercice_coeff_max > 1}
|
||||||
|
<Badge color="success">
|
||||||
|
<Icon name="gift-fill" />
|
||||||
|
</Badge>
|
||||||
|
{/if}
|
||||||
|
<Badge>
|
||||||
|
{#if $my && $my.team_id}{$myThemes[$themes[th].id].exercice_solved}/{/if}{$themes[th].exercice_count}
|
||||||
</Badge>
|
</Badge>
|
||||||
{/if}
|
</DropdownItem>
|
||||||
{#if $themes[th].exercice_coeff_max > 1}
|
{/each}
|
||||||
<Badge color="success">
|
</div>
|
||||||
<Icon name="gift-fill" />
|
|
||||||
</Badge>
|
|
||||||
{/if}
|
|
||||||
<Badge>
|
|
||||||
{#if $my && $my.team_id}{$myThemes[$themes[th].id].exercice_solved}/{/if}{$themes[th].exercice_count}
|
|
||||||
</Badge>
|
|
||||||
</DropdownItem>
|
|
||||||
{/each}
|
|
||||||
</DropdownMenu>
|
</DropdownMenu>
|
||||||
</Dropdown>
|
</Dropdown>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
div {
|
||||||
|
overflow-y: auto;
|
||||||
|
max-height: calc(80vh - 100px);
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user