Merge branch 'develop' into feature/360-view

This commit is contained in:
Pieter Vander Vennet 2025-03-29 00:50:32 +01:00
commit fa9e61c2b5
230 changed files with 45510 additions and 33214 deletions

View file

@ -88,8 +88,7 @@
image={providedImage}
imgClass="max-h-64 w-auto sm:h-32 md:h-64"
attributionFormat="minimal"
>
</AttributedImage>
/>
<LoginToggle {state} silentFail={true}>
{#if linkable}
<label>

View file

@ -24,16 +24,20 @@
let enableLogin = state.featureSwitches.featureSwitchEnableLogin
export let shown = new UIEventSource(false)
onDestroy(MenuState.nearbyImagesFeature.addCallback(something => {
if (something !== feature) {
shown.set(false)
}
}))
onDestroy(shown.addCallbackAndRun(isShown => {
if (isShown) {
MenuState.nearbyImagesFeature.set(feature)
}
}))
onDestroy(
MenuState.nearbyImagesFeature.addCallback((something) => {
if (something !== feature) {
shown.set(false)
}
})
)
onDestroy(
shown.addCallbackAndRun((isShown) => {
if (isShown) {
MenuState.nearbyImagesFeature.set(feature)
}
})
)
</script>
{#if enableLogin.data}