bg-transparent for embed

This commit is contained in:
HolgerHatGarKeineNode
2023-03-16 17:42:51 +01:00
parent 47e5d9ea58
commit caf599f8c7
3 changed files with 30 additions and 30 deletions

View File

@@ -143,19 +143,19 @@
<div <div
x-data="{ x-data="{
observe () { observe () {
let observer = new IntersectionObserver((entries) => { let observer = new IntersectionObserver((entries) => {
entries.forEach(entry => { entries.forEach(entry => {
if (entry.isIntersecting) { if (entry.isIntersecting) {
@this.call('loadMore') @this.call('loadMore')
} }
})
}, {
root: null
}) })
observer.observe(this.$el) }, {
} root: null
}" })
observer.observe(this.$el)
}
}"
x-init="observe" x-init="observe"
></div> ></div>

View File

@@ -1,4 +1,4 @@
<div class="h-full {{ $darkMode ? 'bg-21gray' : 'bg-white' }}"> <div class="h-full {{ $darkMode ? 'bg-21gray' : 'bg-transparent' }}">
@php @php
$focus = ''; $focus = '';
$map = $country->code . '_merc'; $map = $country->code . '_merc';

View File

@@ -173,23 +173,23 @@
@endif @endif
@endforeach @endforeach
<div <div
x-data="{ x-data="{
observe () { observe () {
let observer = new IntersectionObserver((entries) => { let observer = new IntersectionObserver((entries) => {
entries.forEach(entry => { entries.forEach(entry => {
if (entry.isIntersecting) { if (entry.isIntersecting) {
@this.call('loadMore') @this.call('loadMore')
} }
}) })
}, { }, {
root: null root: null
}) })
observer.observe(this.$el) observer.observe(this.$el)
} }
}" }"
x-init="observe" x-init="observe"
></div> ></div>
</div> </div>
</div> </div>