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"}
|
||||
</p>
|
||||
<p>
|
||||
<b>Supported formats:</b>
|
||||
<span class="flex flex-wrap justify-center">
|
||||
<b>Supported formats: </b>
|
||||
{#each s.formats.split(", ") as format, index}
|
||||
{@const isPartial = format.endsWith("*")}
|
||||
{@const formatName = isPartial
|
||||
? format.slice(0, -1)
|
||||
: format}
|
||||
<span
|
||||
class="text-sm font-normal flex items-center"
|
||||
>
|
||||
{#if isPartial}
|
||||
<Tooltip text={getTooltip(formatName)}>
|
||||
<span class="whitespace-pre-wrap">
|
||||
<Tooltip
|
||||
text={getTooltip(formatName)}
|
||||
>
|
||||
{formatName}<span
|
||||
class="text-red-500">*</span
|
||||
>{index <
|
||||
s.formats.split(", ").length - 1
|
||||
? ", "
|
||||
: ""}
|
||||
</span>
|
||||
>
|
||||
</Tooltip>
|
||||
{:else}
|
||||
<span class="whitespace-pre-wrap">
|
||||
{formatName}{index <
|
||||
s.formats.split(", ").length - 1
|
||||
? ", "
|
||||
: ""}
|
||||
</span>
|
||||
{formatName}
|
||||
{/if}
|
||||
{#if index < s.formats.split(", ").length - 1}
|
||||
<span>, </span>
|
||||
{/if}
|
||||
</span>
|
||||
{/each}
|
||||
</span>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue