frontend: move style properties to components

This commit is contained in:
OleSTEEP 2025-10-07 14:37:21 +03:00
parent c95aed01b5
commit faf221c9ba
10 changed files with 289 additions and 297 deletions

View file

@ -4,8 +4,28 @@
</script>
<div class="{direction} {input ? "input" : ""} image rounded">
<AddButton handler={() => {
<AddButton size=48 handler={() => {
// addImage(plus.id, this.id);
// document.getElementById("screenshots").appendChild(new HorisontalImage().html);
}}/>
</div>
<style>
/* Вертикальное изображение */
.vertical {
aspect-ratio: 11 / 16;
}
/* Горизонтальное изображение */
.horisontal {
aspect-ratio: 16 / 11;
}
:global(.image) {
margin-left: auto;
margin-right: auto;
align-content: center;
text-align: center;
width: 11rem;
}
</style>