Fix play button positioning and remove green background
This commit is contained in:
parent
6438deb3d0
commit
ac6d6d32b4
10
renderer.js
10
renderer.js
@ -246,16 +246,18 @@ function addTagToEpisode(filePath, tagType) {
|
||||
playButton.title = 'Play file';
|
||||
playButton.dataset.filePath = filePath;
|
||||
|
||||
// Style the play button
|
||||
// Style the play button to match the existing tag icons
|
||||
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.borderRadius = '3px';
|
||||
playButton.style.cursor = 'pointer';
|
||||
playButton.style.backgroundColor = '#28a745';
|
||||
playButton.style.color = 'white';
|
||||
playButton.style.backgroundColor = 'transparent'; // Remove green background
|
||||
playButton.style.color = '#007bff'; // Match other icons color
|
||||
playButton.style.fontWeight = 'bold';
|
||||
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
|
||||
playButton.addEventListener('click', function(e) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user