Optional widened main column #402

Open
Riedler wants to merge 8 commits from Riedler/akkoma-fe:wide-columns-for-upstream into develop
2 changed files with 5 additions and 3 deletions
Showing only changes of commit 1b4df9e79d - Show all commits

View file

@ -88,9 +88,7 @@ const Gallery = {
set(this.sizes, id, { width, height })
},
rowStyle (row) {
if (row.audio) {
return { 'height': '10em' } // fixed reduced height for audio
} else if (!row.minimal && !row.grid) {
if (!row.audio && !row.minimal && !row.grid) {
return { 'aspect-ratio': `1/${(1 / (row.items.length + 0.6))}` }
}
},

View file

@ -102,6 +102,10 @@
max-height: 30em;
}
&.-audio {
aspect-ratio: 4/1; // this is terrible, but it's how it was before so I'm not changing it >:(
}
&:not(:first-child) {
margin-top: 0.5em;
}