Skip to content

Commit 5158d51

Browse files
hai-altx-softStigmatoz
authored andcommitted
Add fake icons for null favicons
1 parent f000f31 commit 5158d51

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

icons/empty.png

1.5 KB
Loading

scripts/ui.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,10 @@ class UI {
116116

117117
var img = document.createElement('img');
118118
img.classList.add('favicon');
119-
img.setAttribute('height', 15);
120-
img.setAttribute('src', tab.favicon);
119+
img.setAttribute('height', 17);
120+
if (tab.favicon !== undefined || tab.favicon == null)
121+
img.setAttribute('src', tab.favicon);
122+
else img.setAttribute('src', '/icons/empty.png');
121123

122124
var spanUrl = document.createElement('span');
123125
spanUrl.classList.add('span-url');

style/webact.css

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ body {
99

1010
.inline-flex{
1111
display: inline-flex;
12-
height: 23px;
12+
height: 27px;
1313
}
1414

1515
.inline-flex:hover{
@@ -46,14 +46,12 @@ body {
4646
}
4747

4848
.span-time{
49-
margin-left: 10px;
50-
width: 100px;
5149
font-weight: 500;
5250
text-align: right;
5351
}
5452

5553
.favicon{
56-
margin-right:5px;
54+
margin:2px 7px 5px 3px;
5755
}
5856

5957
hr {

0 commit comments

Comments
 (0)