Force 3/2 format for non landscape photos on Location page
Center image on a background when square, portrait or other ratio - Fix MutuationObserver for using components (would think a component is an item)
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
export let photoAlt: string
|
||||
export let title: string
|
||||
export let index: string
|
||||
export let orientation: string = undefined
|
||||
export let date: string = undefined
|
||||
export let city: string = undefined
|
||||
</script>
|
||||
@@ -28,7 +29,9 @@
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<figure class="house__photo">
|
||||
<figure class="house__photo"
|
||||
class:not-landscape={orientation && orientation !== 'landscape'}
|
||||
>
|
||||
<a href={url} sveltekit:noscroll tabindex="0">
|
||||
<Image
|
||||
id={photoId}
|
||||
|
||||
Reference in New Issue
Block a user