also add hover to link previews

This commit is contained in:
Freeplay 2023-02-23 22:03:38 -05:00
parent 5fe9ee27ef
commit 842d48c4a8
2 changed files with 7 additions and 2 deletions

View file

@ -72,6 +72,10 @@ const urls = props.note.text ? extractUrlFromMfm(mfm.parse(props.note.text)) : n
}
}
> .mk-url-preview {
margin-top: 8px;
}
&.collapsed {
position: relative;
max-height: 9em;

View file

@ -214,9 +214,10 @@ onUnmounted(() => {
border: 1px solid var(--divider);
border-radius: 8px;
overflow: hidden;
&:hover {
transition: background .2s;
&:hover, &:focus-within {
text-decoration: none;
background-color: var(--panelHighlight);
> article > header > h1 {
text-decoration: underline;
}