kyd-shared-badge 0.3.49 → 0.3.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -179,7 +179,7 @@ const SharedBadgeDisplay = ({ badgeData, chatProps, headless }: { badgeData: Pub
|
|
|
179
179
|
setActiveTab(t.key);
|
|
180
180
|
try { if (typeof window !== 'undefined') window.history.replaceState(null, '', `#${t.key}`); } catch {}
|
|
181
181
|
}}
|
|
182
|
-
className={`px-3 sm:px-4 py-2 text-sm rounded-t flex items-center gap-2 ${activeTab === t.key ? 'font-semibold' : ''}`}
|
|
182
|
+
className={`px-3 sm:px-4 py-2 text-sm rounded-t flex items-center gap-2 cursor-pointer ${activeTab === t.key ? 'font-semibold' : ''}`}
|
|
183
183
|
style={{
|
|
184
184
|
color: 'var(--text-main)',
|
|
185
185
|
background: activeTab === t.key ? 'var(--content-card-background)' : 'transparent',
|
|
@@ -95,17 +95,18 @@ const CategoryBars: React.FC<CategoryBarsProps> = ({
|
|
|
95
95
|
aria-label={`Jump to ${category} in Appendix`}
|
|
96
96
|
>
|
|
97
97
|
{/* signed fill originating from center */}
|
|
98
|
-
<div className="absolute top-0 h-full" style={{ left, width: `${fillWidth}%`, backgroundColor: isNegative ? `var(--status-negative, ${red})` : `var(--status-positive, ${green})
|
|
99
|
-
{/* role target overlay: positive side only, dashed outline */}
|
|
98
|
+
<div className="absolute top-0 h-full" style={{ left, width: `${fillWidth}%`, backgroundColor: isNegative ? `var(--status-negative, ${red})` : `var(--status-positive, ${green})`, zIndex: 1 }} />
|
|
99
|
+
{/* role target overlay: positive side only, dashed outline (always above fill) */}
|
|
100
100
|
{hasTarget && (
|
|
101
101
|
<div
|
|
102
102
|
className="absolute top-0 h-full"
|
|
103
103
|
style={{
|
|
104
104
|
left: '50%',
|
|
105
105
|
width: `${targetWidth}%`,
|
|
106
|
-
borderTop: '2px dashed
|
|
107
|
-
borderBottom: '2px dashed
|
|
108
|
-
opacity:
|
|
106
|
+
borderTop: '2px dashed #000',
|
|
107
|
+
borderBottom: '2px dashed #000',
|
|
108
|
+
opacity: 1,
|
|
109
|
+
zIndex: 2,
|
|
109
110
|
}}
|
|
110
111
|
aria-hidden="true"
|
|
111
112
|
/>
|