Spaces:
Running
Running
deepsite smaller badge
Browse files- public/deepsite-badge.js +5 -5
public/deepsite-badge.js
CHANGED
|
@@ -81,9 +81,9 @@
|
|
| 81 |
const icon = document.createElement('img');
|
| 82 |
icon.src = 'https://deepsite.hf.co/logo.svg';
|
| 83 |
icon.alt = 'DeepSite';
|
| 84 |
-
icon.style.marginRight = '
|
| 85 |
-
icon.style.width = '
|
| 86 |
-
icon.style.height = '
|
| 87 |
icon.style.filter = 'brightness(0) invert(1)';
|
| 88 |
|
| 89 |
// Create text
|
|
@@ -98,7 +98,7 @@
|
|
| 98 |
color: '#ffffff',
|
| 99 |
borderRadius: '9999px',
|
| 100 |
background: 'rgba(0, 0, 0, 0.4)',
|
| 101 |
-
fontSize: '
|
| 102 |
fontWeight: '500',
|
| 103 |
display: 'inline-block',
|
| 104 |
cursor: 'pointer',
|
|
@@ -111,7 +111,7 @@
|
|
| 111 |
// Apply styles to inner badge (like span element)
|
| 112 |
Object.assign(badgeInner.style, {
|
| 113 |
background: 'rgba(0, 0, 0, 0.6)',
|
| 114 |
-
padding: '
|
| 115 |
display: 'flex',
|
| 116 |
alignItems: 'center',
|
| 117 |
borderRadius: '9999px',
|
|
|
|
| 81 |
const icon = document.createElement('img');
|
| 82 |
icon.src = 'https://deepsite.hf.co/logo.svg';
|
| 83 |
icon.alt = 'DeepSite';
|
| 84 |
+
icon.style.marginRight = '6px';
|
| 85 |
+
icon.style.width = '16px';
|
| 86 |
+
icon.style.height = '16px';
|
| 87 |
icon.style.filter = 'brightness(0) invert(1)';
|
| 88 |
|
| 89 |
// Create text
|
|
|
|
| 98 |
color: '#ffffff',
|
| 99 |
borderRadius: '9999px',
|
| 100 |
background: 'rgba(0, 0, 0, 0.4)',
|
| 101 |
+
fontSize: '12px',
|
| 102 |
fontWeight: '500',
|
| 103 |
display: 'inline-block',
|
| 104 |
cursor: 'pointer',
|
|
|
|
| 111 |
// Apply styles to inner badge (like span element)
|
| 112 |
Object.assign(badgeInner.style, {
|
| 113 |
background: 'rgba(0, 0, 0, 0.6)',
|
| 114 |
+
padding: '8px 16px',
|
| 115 |
display: 'flex',
|
| 116 |
alignItems: 'center',
|
| 117 |
borderRadius: '9999px',
|