Add 'narrow' property to Modal

This commit is contained in:
Alexis Sellier
2021-06-23 19:31:13 +02:00
parent d54489d36d
commit 232ab5a241
+8 -1
View File
@@ -3,6 +3,7 @@
export let error = false;
export let subtle = false;
export let small = false;
export let narrow = false;
</script>
<style>
@@ -33,6 +34,9 @@
max-width: 760px;
text-align: center;
}
.modal.modal-narrow {
max-width: 600px;
}
.modal.modal-subtle {
border: none;
box-shadow: none;
@@ -82,7 +86,10 @@
{/if}
<div class:modal-floating={floating} class="centered">
<div class="modal" class:error class:modal-subtle={subtle} class:modal-small={small}>
<div class="modal" class:error
class:modal-subtle={subtle}
class:modal-narrow={narrow}
class:modal-small={small}>
<div class="modal-title">
<slot name="title"></slot>
</div>