1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-02-08 23:39:46 +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('id', 'post-hover-' + id)
.attr('data-board', board) .attr('data-board', board)
.addClass('post-hover') .addClass('post-hover')
.css('border-style', 'solid')
.css('display', 'inline-block') .css('display', 'inline-block')
.css('position', 'absolute') .css('position', 'absolute')
.css('font-style', 'normal') .css('font-style', 'normal')
@ -134,12 +135,10 @@ if (!window.matchMedia('(any-hover: none)').matches) {
if (isScreenSmall) { if (isScreenSmall) {
hoverPreview hoverPreview
.css('margin-top', '1em') .css('margin-top', '1em')
.css('border-top', 'solid') .css('border-left-style', 'none')
.css('border-bottom', 'solid'); .css('border-right-style', 'none');
} else { } else {
hoverPreview hoverPreview.css('margin-left', '1em');
.css('margin-left', '1em')
.css('border-style', 'solid');
} }
hoverPreview.addClass('reply').addClass('post') hoverPreview.addClass('reply').addClass('post')