Skip to content

Commit

Permalink
use the default view transition everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
kent-3 committed Jan 21, 2025
1 parent d5a0c10 commit d34e1e7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
23 changes: 16 additions & 7 deletions input.css
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,7 @@ ul {
}
}

/*
.router-outlet-0 main {
view-transition-name: main;
}
Expand All @@ -504,19 +505,26 @@ ul {
view-transition-name: main-back;
}
.router-outlet-1 .contact-list {
view-transition-name: contact;
.router-outlet-1 {
view-transition-name: nested;
}
.router-outlet-2 {
view-transition-name: nested;
}
.router-outlet-3 {
view-transition-name: nested;
}
@media (prefers-reduced-motion: no-preference) {
::view-transition-old(contact) {
animation: 150ms fadeOut cubic-bezier(0.3, 0.1, 1, 1);
/* Hold final state of animation */
::view-transition-old(nested) {
animation: 200ms fadeOut cubic-bezier(0.3, 0.1, 1, 1);
animation-fill-mode: forwards;
}
::view-transition-new(contact) {
animation: 300ms fadeIn cubic-bezier(0.2, 0, 0, 1);
::view-transition-new(nested) {
animation: 200ms fadeIn cubic-bezier(0.2, 0, 0, 1);
animation-fill-mode: forwards;
}
Expand All @@ -542,3 +550,4 @@ ul {
animation-fill-mode: forwards;
}
}
*/
2 changes: 1 addition & 1 deletion src/routes/pool/pool_browser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ pub fn PoolBrowser() -> impl IntoView {
<a
class="no-underline text-white"
href=format!(
"/liquidity-book-leptos/pool/{}/{}/{}",
"/liquidity-book-leptos/pool/{}/{}/{}/manage",
match n.token_x {
TokenType::CustomToken { ref contract_addr, .. } => {
contract_addr.to_string()
Expand Down

0 comments on commit d34e1e7

Please sign in to comment.