Skip to content

Commit 0dd71be

Browse files
author
hoang.tran12
committed
fix style
1 parent 732ccad commit 0dd71be

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

popup/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ function createScriptButton(script, isFavorite = false) {
333333
tooltip.innerHTML = t(script.description);
334334

335335
if (script.description?.img) {
336-
tooltip.innerHTML += `<img src="${script.description.img}" style="width:80vw" />`;
336+
tooltip.innerHTML += `<img src="${script.description.img}"/>`;
337337
}
338338
if (script.description?.video) {
339339
let video = document.createElement("video");

popup/themes/default.less

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ option {
454454
border-radius: 6px;
455455
padding: 5px;
456456
pointer-events: none;
457-
width: calc(100% - 40px);
457+
width: calc(100%);
458458
position: absolute;
459459
z-index: 1;
460460
top: 80%;
@@ -463,6 +463,10 @@ option {
463463
transition: all .1s;
464464
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
465465

466+
& img {
467+
max-width: 100%;
468+
}
469+
466470
& * {
467471
color: @color_tooltip;
468472
}

working_note.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# WORKING NOTES
22

3-
## 28/04/2024 - 24/05/2024
3+
## 28/04/2024 - 29/05/2024
44

55
- [ ] options page for smooth scroll: disable for specific sites, config smooth, ...
66

0 commit comments

Comments
 (0)