style: add glowing border to permalink-highlighted messages
The linked message now gets a purple box-shadow glow and background highlight that lasts 4 seconds, making it much more obvious which message the user was linked to. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
55c17b2999
commit
9634c275b3
@ -172,16 +172,19 @@
|
||||
}
|
||||
|
||||
:global(.hash-highlight) {
|
||||
animation: hash-flash 3s ease;
|
||||
animation: hash-flash 4s ease;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.5), 0 0 12px rgba(108, 92, 231, 0.2);
|
||||
}
|
||||
|
||||
@keyframes hash-flash {
|
||||
0%, 15% {
|
||||
background: rgba(108, 92, 231, 0.2);
|
||||
border-radius: 8px;
|
||||
0%, 30% {
|
||||
background: rgba(108, 92, 231, 0.15);
|
||||
box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.5), 0 0 16px rgba(108, 92, 231, 0.25);
|
||||
}
|
||||
100% {
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@ -606,7 +609,7 @@
|
||||
if (el) {
|
||||
el.scrollIntoView({ behavior: 'smooth', block: 'center' })
|
||||
el.classList.add('hash-highlight')
|
||||
setTimeout(() => el.classList.remove('hash-highlight'), 3000)
|
||||
setTimeout(() => el.classList.remove('hash-highlight'), 4000)
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user