modify Warning to take icon

This commit is contained in:
llama 2025-10-18 10:03:41 +08:00
parent 167551839d
commit 1f7fe021df
No known key found for this signature in database
GPG key ID: 0B7543854B9413C3

View file

@ -13,9 +13,16 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
</script> </script>
{#if warning} {#if warning}
<Row> <Row class="centre m-3">
<div class="col-12 alert {className} mb-0" in:slide out:slide> <div class="col-12 alert {className} mb-0" in:slide out:slide>
<slot name="icon" />
{withoutUnicodeIsolation(warning)} {withoutUnicodeIsolation(warning)}
</div> </div>
</Row> </Row>
{/if} {/if}
<style lang="scss">
.centre {
justify-content: center;
}
</style>