mirror of https://github.com/VERT-sh/VERT.git
fix: brief card overflow when loading page
This commit is contained in:
parent
c04507d1ee
commit
2363ca7910
|
@ -134,32 +134,33 @@
|
||||||
{s.ready ? "ready" : "not ready"}
|
{s.ready ? "ready" : "not ready"}
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<b>Supported formats:</b>
|
<span class="flex flex-wrap justify-center">
|
||||||
{#each s.formats.split(", ") as format, index}
|
<b>Supported formats: </b>
|
||||||
{@const isPartial = format.endsWith("*")}
|
{#each s.formats.split(", ") as format, index}
|
||||||
{@const formatName = isPartial
|
{@const isPartial = format.endsWith("*")}
|
||||||
? format.slice(0, -1)
|
{@const formatName = isPartial
|
||||||
: format}
|
? format.slice(0, -1)
|
||||||
{#if isPartial}
|
: format}
|
||||||
<Tooltip text={getTooltip(formatName)}>
|
<span
|
||||||
<span class="whitespace-pre-wrap">
|
class="text-sm font-normal flex items-center"
|
||||||
{formatName}<span
|
>
|
||||||
class="text-red-500">*</span
|
{#if isPartial}
|
||||||
>{index <
|
<Tooltip
|
||||||
s.formats.split(", ").length - 1
|
text={getTooltip(formatName)}
|
||||||
? ", "
|
>
|
||||||
: ""}
|
{formatName}<span
|
||||||
</span>
|
class="text-red-500">*</span
|
||||||
</Tooltip>
|
>
|
||||||
{:else}
|
</Tooltip>
|
||||||
<span class="whitespace-pre-wrap">
|
{:else}
|
||||||
{formatName}{index <
|
{formatName}
|
||||||
s.formats.split(", ").length - 1
|
{/if}
|
||||||
? ", "
|
{#if index < s.formats.split(", ").length - 1}
|
||||||
: ""}
|
<span>, </span>
|
||||||
|
{/if}
|
||||||
</span>
|
</span>
|
||||||
{/if}
|
{/each}
|
||||||
{/each}
|
</span>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue