mirror of
https://github.com/Xevion/banner.git
synced 2026-01-31 08:23:35 -06:00
fix: re-add overflow hidden for page transitions, but with negative margin padding to avoid clipping
Prevents scrollbars while also avoiding clipping on certain pages.
This commit is contained in:
@@ -67,9 +67,9 @@ function outTransition(_node: HTMLElement): TransitionConfig {
|
||||
}
|
||||
</script>
|
||||
|
||||
<div class="relative flex flex-1 flex-col">
|
||||
<div class="relative flex flex-1 flex-col overflow-hidden p-8">
|
||||
{#key key}
|
||||
<div in:inTransition out:outTransition class="flex flex-1 flex-col">
|
||||
<div in:inTransition out:outTransition class="flex flex-1 flex-col -m-8">
|
||||
{@render children()}
|
||||
</div>
|
||||
{/key}
|
||||
|
||||
Reference in New Issue
Block a user