web/ProcessingQueueItem: fix clear button focusability

it's no longer focusable when popover is hidden, fr this time
This commit is contained in:
wukko 2025-05-19 22:01:31 +06:00
parent b12a1e02a8
commit 16e69d8aee
No known key found for this signature in database
GPG Key ID: 3E30B3F26C7B4AA2

View File

@ -46,7 +46,7 @@
});
</script>
<div id="processing-queue" class:expanded={$queueVisible}>
<div id="processing-queue">
<ProcessingStatus
progress={totalProgress * 100}
{indeterminate}
@ -68,7 +68,11 @@
/>
<div class="header-buttons">
{#if queue.length}
<button class="clear-button" onclick={clearQueue}>
<button
class="clear-button"
onclick={clearQueue}
tabindex={!$queueVisible ? -1 : undefined}
>
<IconX />
{$t("button.clear")}
</button>
@ -144,10 +148,6 @@
outline-offset: 5px;
}
#processing-queue:not(.expanded) .header-buttons button {
pointer-events: none;
}
.header-buttons button :global(svg) {
height: 16px;
width: 16px;