diff --git a/static/app.js b/static/app.js index acd46f9..c37f16c 100644 --- a/static/app.js +++ b/static/app.js @@ -1051,7 +1051,7 @@ function renderSounds(sounds) { item.className = 'sound-item'; // Only show delete button if user is creator or owner - const canDelete = state.user && (state.user.id === sound.created_by_user_id || (state.guilds.find(g => g.id === state.selectedGuildId)?.owner_user_id === state.user.id)); + const canDelete = state.me && (state.me.id === sound.created_by_user_id || (state.guilds.find(g => g.id === state.selectedGuildId)?.owner_user_id === state.me.id)); item.innerHTML = `
${sound.icon}
diff --git a/static/styles.css b/static/styles.css index a6e26d9..03887fe 100644 --- a/static/styles.css +++ b/static/styles.css @@ -716,6 +716,7 @@ select { cursor: pointer; transition: all var(--transition); border: 1px solid transparent; + position: relative; } .sound-item:hover {