mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-24 06:20:20 -05:00
refac
This commit is contained in:
1 parent
362b01d0b2
commit
d12da61e5a
3 files changed
+47
-7
No files matched your search
@@ -133,7 +133,7 @@
|
||||
const target = document.createElement('button'); target.type = 'button';
|
||||
target.dataset.fileCommentId = comment.id; target.dataset.commentHighlight = comment.id;
|
||||
target.setAttribute('aria-label', `${$i18n.t('Comment')}: ${comment.author || $i18n.t('Unknown author')}`);
|
||||
Object.assign(target.style, {position:'absolute',left:`${Math.min(r[0],r[2])}px`,top:`${Math.min(r[1],r[3])}px`,width:`${Math.abs(r[2]-r[0])}px`,height:`${Math.abs(r[3]-r[1])}px`,pointerEvents:'auto',background:'transparent',border:'0',borderBottom:'1px solid rgba(180,130,30,.6)',cursor:'help'});
|
||||
Object.assign(target.style, {position:'absolute',left:`${Math.min(r[0],r[2])}px`,top:`${Math.min(r[1],r[3])}px`,width:`${Math.abs(r[2]-r[0])}px`,height:`${Math.abs(r[3]-r[1])}px`,pointerEvents:'none',background:'transparent',border:'0',borderBottom:'1px solid rgba(180,130,30,.6)',cursor:'help'});
|
||||
layer.appendChild(target);
|
||||
}
|
||||
if (regions.length) continue;
|
||||
|
||||
Reference in new issue
Block a user