mirror of
https://github.com/imputnet/cobalt.git
synced 2024-12-29 11:06:10 +00:00
web/skeleton: don't render if hidden
This commit is contained in:
parent
705fac16a6
commit
c03337fed9
|
@ -10,16 +10,17 @@
|
|||
|
||||
$: style = [
|
||||
width && `width: ${width}`,
|
||||
height && `height: ${height}`,
|
||||
hidden && `display: none`
|
||||
height && `height: ${height}`
|
||||
].filter(a => a).join(';');
|
||||
</script>
|
||||
|
||||
{#if hidden !== true}
|
||||
<div
|
||||
class="skeleton {_class}"
|
||||
{style}
|
||||
{...$$restProps}
|
||||
></div>
|
||||
{/if}
|
||||
|
||||
<style>
|
||||
.skeleton {
|
||||
|
|
Loading…
Reference in a new issue