mirror of
https://github.com/ankitects/anki.git
synced 2025-11-06 12:47:11 -05:00
modify Warning to take icon
This commit is contained in:
parent
167551839d
commit
1f7fe021df
1 changed files with 8 additions and 1 deletions
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue