Skip to content

Commit

Permalink
fix: link underline style when selected
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Aug 30, 2024
1 parent 8f52fde commit fa7fb07
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/(app)/timeline/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ type MapType = {

const useJumpTo = () => {
useEffect(() => {
setTimeout(() => {
const timer = setTimeout(() => {
const jumpToId = new URLSearchParams(location.search).get('selectId')

if (!jumpToId) return
Expand Down Expand Up @@ -68,6 +68,8 @@ const useJumpTo = () => {

// wait for user focus
}, 100)

return () => clearTimeout(timer)
}, [])
}

Expand Down
8 changes: 8 additions & 0 deletions src/styles/layer.css
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@

transition: all 250ms ease;
}

&::selection {
text-shadow: none;
}

&.no-shadow {
text-shadow: none;
}
}

.shiro-timeline {
Expand Down

0 comments on commit fa7fb07

Please sign in to comment.