1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-02-08 15:38:20 +01:00

post-hover.js: fix borders

This commit is contained in:
Zankaria 2024-08-18 16:58:35 +02:00 committed by Zankaria
parent 9eb36fe3f3
commit 75977269f3

View File

@ -126,6 +126,7 @@ if (!window.matchMedia('(any-hover: none)').matches) {
.attr('id', 'post-hover-' + id)
.attr('data-board', board)
.addClass('post-hover')
.css('border-style', 'solid')
.css('display', 'inline-block')
.css('position', 'absolute')
.css('font-style', 'normal')
@ -134,12 +135,10 @@ if (!window.matchMedia('(any-hover: none)').matches) {
if (isScreenSmall) {
hoverPreview
.css('margin-top', '1em')
.css('border-top', 'solid')
.css('border-bottom', 'solid');
.css('border-left-style', 'none')
.css('border-right-style', 'none');
} else {
hoverPreview
.css('margin-left', '1em')
.css('border-style', 'solid');
hoverPreview.css('margin-left', '1em');
}
hoverPreview.addClass('reply').addClass('post')