enzostvs HF Staff commited on
Commit
a8cda3d
·
1 Parent(s): 35ef307

deepsite smaller badge

Browse files
Files changed (1) hide show
  1. 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 = '8px';
85
- icon.style.width = '20px';
86
- icon.style.height = '20px';
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: '14px',
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: '10px 20px',
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',