nicolium: add view transition

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2026-03-08 17:17:09 +01:00
parent f8ed677b04
commit a7bcab2f15
3 changed files with 8 additions and 0 deletions

View File

@ -1592,6 +1592,9 @@ const router = createRouter({
defaultErrorComponent: SiteError,
scrollRestoration: true,
pathParamsAllowedCharacters: ['@'],
defaultViewTransition: {
types: ({ fromLocation }) => (fromLocation ? [''] : false),
},
});
router.subscribe('onBeforeNavigate', (event) => {

View File

@ -1,3 +1,7 @@
html {
scrollbar-gutter: stable;
}
body {
-webkit-overflow-scrolling: touch;
-ms-overflow-style: -ms-autohiding-scrollbar;

View File

@ -369,6 +369,7 @@ body {
&__main {
@apply md:col-span-12 lg:col-span-9 xl:col-span-6 pb-14 lg:pb-0 xl:pb-16 black:border-gray-800 lg:black:border-l xl:black:border-r;
navigation: auto;
&--chats {
@apply xl:pb-16;