Spacer component removed (obsolete and unsed)

This commit is contained in:
2024-08-14 19:46:05 +03:00
parent 06da63caaf
commit ec7cb9d97b

View File

@@ -1,31 +0,0 @@
<script>
export let type = "left";
let rule = "";
if (type == "left") {
rule = "margin-left: auto";
}
if (type == "right") {
rule = "margin-right: auto";
}
if (type == "top") {
rule = "margin-top: auto";
}
if (type == "bottom") {
rule = "margin-bottom: auto";
}
if (type == "vertical") {
rule = "margin-top: auto; margin-bottom: auto";
}
if (type == "horizontal") {
rule = "margin-left: auto; margin-right: auto";
}
if (rule == "") {
console.error("Invalid spacer type: " + type);
}
</script>
<div class="spacer" style="{rule}"/>