a11y
Co-Authored-By: Classic298 <27028174+Classic298@users.noreply.github.com>
This commit is contained in:
co-authored by
Classic298
parent
865c80c160
commit
c8f8fa451a
@@ -225,7 +225,7 @@
|
||||
class=" bg-white text-black border border-white rounded-full {($settings?.highContrastMode ??
|
||||
false)
|
||||
? ''
|
||||
: 'group-hover:visible invisible transition'}"
|
||||
: 'hover-reveal transition'}"
|
||||
type="button"
|
||||
on:click={() => {
|
||||
editedFiles.splice(fileIdx, 1);
|
||||
@@ -421,9 +421,7 @@
|
||||
>
|
||||
<time
|
||||
datetime={new Date(message.timestamp * 1000).toISOString()}
|
||||
class="{compactPreview
|
||||
? ''
|
||||
: 'invisible group-hover:visible'} {($settings?.chatBubble ?? true)
|
||||
class="{compactPreview ? '' : 'hover-reveal'} {($settings?.chatBubble ?? true)
|
||||
? 'mr-1'
|
||||
: 'ml-1 shrink-0 whitespace-nowrap'} text-[0.6875rem] tabular-nums text-gray-400 dark:text-gray-600 select-none"
|
||||
>
|
||||
@@ -533,7 +531,7 @@
|
||||
<button
|
||||
class="{($settings?.highContrastMode ?? false)
|
||||
? ''
|
||||
: 'invisible group-hover:visible'} p-1.5 hover:bg-black/5 dark:hover:bg-white/5 rounded-lg dark:hover:text-white hover:text-black transition edit-user-message-button"
|
||||
: 'hover-reveal'} p-1.5 hover:bg-black/5 dark:hover:bg-white/5 rounded-lg dark:hover:text-white hover:text-black transition edit-user-message-button"
|
||||
aria-label={$i18n.t('Edit')}
|
||||
on:click={() => {
|
||||
editMessageHandler();
|
||||
@@ -562,7 +560,7 @@
|
||||
<button
|
||||
class="{($settings?.highContrastMode ?? false)
|
||||
? ''
|
||||
: 'invisible group-hover:visible'} p-1.5 hover:bg-black/5 dark:hover:bg-white/5 rounded-lg dark:hover:text-white hover:text-black transition"
|
||||
: 'hover-reveal'} p-1.5 hover:bg-black/5 dark:hover:bg-white/5 rounded-lg dark:hover:text-white hover:text-black transition"
|
||||
aria-label={$i18n.t('Copy')}
|
||||
on:click={() => {
|
||||
copyToClipboard(message.content);
|
||||
@@ -593,7 +591,7 @@
|
||||
aria-label={$i18n.t('Delete')}
|
||||
class="{($settings?.highContrastMode ?? false)
|
||||
? ''
|
||||
: 'invisible group-hover:visible'} p-1 rounded-sm dark:hover:text-white hover:text-black transition"
|
||||
: 'hover-reveal'} p-1 rounded-sm dark:hover:text-white hover:text-black transition"
|
||||
on:click={(e) => {
|
||||
if (e.shiftKey) {
|
||||
deleteMessageHandler();
|
||||
|
||||
Reference in New Issue
Block a user