Fix play button positioning and remove green background

This commit is contained in:
Jarian Cottingham 2026-02-21 15:42:16 -06:00
parent 3d3cc2b91c
commit 493116ad29

View File

@ -246,16 +246,18 @@ function addTagToEpisode(filePath, tagType) {
playButton.title = 'Play file'; playButton.title = 'Play file';
playButton.dataset.filePath = filePath; playButton.dataset.filePath = filePath;
// Style the play button // Style the play button to match the existing tag icons
playButton.style.marginLeft = '10px'; playButton.style.marginLeft = '10px';
playButton.style.padding = '5px 10px'; playButton.style.padding = '0 5px'; // Reduced padding to prevent shifting
playButton.style.border = 'none'; playButton.style.border = 'none';
playButton.style.borderRadius = '3px'; playButton.style.borderRadius = '3px';
playButton.style.cursor = 'pointer'; playButton.style.cursor = 'pointer';
playButton.style.backgroundColor = '#28a745'; playButton.style.backgroundColor = 'transparent'; // Remove green background
playButton.style.color = 'white'; playButton.style.color = '#007bff'; // Match other icons color
playButton.style.fontWeight = 'bold'; playButton.style.fontWeight = 'bold';
playButton.style.fontSize = '14px'; playButton.style.fontSize = '14px';
playButton.style.height = '20px'; // Fixed height to prevent shifting
playButton.style.lineHeight = '20px'; // Center vertically
// Add click handler for play button // Add click handler for play button
playButton.addEventListener('click', function(e) { playButton.addEventListener('click', function(e) {