fix: updated the spectrogram icon

This commit is contained in:
Xiaohan-Tian
2026-05-01 20:18:32 -07:00
parent 756fc1bc6c
commit cbd2fc60a0
2 changed files with 43 additions and 1 deletions
+22 -1
View File
@@ -585,6 +585,23 @@ const RegionItem: React.FC<RegionItemProps> = ({
<FaPencilAlt size={10} />
</button>
)}
{audioRegion && (
<button
className="region-waveform-btn"
title="View waveform"
onMouseDown={(e) => {
e.preventDefault();
e.stopPropagation();
}}
onClick={(e) => {
e.preventDefault();
e.stopPropagation();
}}
aria-label="View waveform"
>
<MdGraphicEq size={10} />
</button>
)}
{audioRegion && (
<button
className="region-spectrogram-btn"
@@ -602,7 +619,11 @@ const RegionItem: React.FC<RegionItemProps> = ({
}}
aria-label="View spectrogram"
>
<MdGraphicEq size={10} />
<svg width="10" height="10" viewBox="0 0 10 10" fill="currentColor">
<rect x="3" y="0.5" width="6.5" height="2.5" rx="0.4"/>
<rect x="1.5" y="3.75" width="6.5" height="2.5" rx="0.4"/>
<rect x="0" y="7" width="6.5" height="2.5" rx="0.4"/>
</svg>
</button>
)}
{showHybridButton && (