Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix z-index #4788

Merged
merged 1 commit into from
Jan 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions renderer/components/layouts/account.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,14 +151,22 @@ export default function Layout({ children }: LayoutProps) {
<Avatar
alt={account.domain}
src={account.avatar}
title={`${account.username}@${account.domain}`}
aria-label={`${account.username}@${account.domain}`}
className="p-1"
onClick={() => openAccount(account.id)}
onContextMenu={() => openContextMenu(account.id)}
/>
</div>
))}
<div className="flex flex-col items-center">
<IconButton variant="text" size="lg" onClick={() => setOpenNewModal(true)}>
<IconButton
variant="text"
size="lg"
onClick={() => setOpenNewModal(true)}
title={formatMessage({ id: 'accounts.new.title' })}
aria-label={formatMessage({ id: 'accounts.new.title' })}
>
<FaPlus className="text-gray-400 text-xl" />
</IconButton>
</div>
Expand All @@ -167,7 +175,12 @@ export default function Layout({ children }: LayoutProps) {
<div className="settings text-gray-400 flex flex-col items-center mb-2">
<Popover open={openPopover} handler={setOpenPopover}>
<PopoverHandler>
<IconButton variant="text" size="lg">
<IconButton
variant="text"
size="lg"
title={formatMessage({ id: 'settings.title' })}
aria-label={formatMessage({ id: 'settings.title' })}
>
<FaGear className="text-gray-400 text-xl" />
</IconButton>
</PopoverHandler>
Expand Down
2 changes: 1 addition & 1 deletion renderer/components/timelines/status/Media.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default function Media(props: Props) {
</Button>
) : (
<>
<button className="absolute bg-gray-600 text-gray-200 top-1 left-1 p-1 rounded z-10" onClick={() => setSensitive(true)}>
<button className="absolute bg-gray-600 text-gray-200 top-1 left-1 p-1 rounded" onClick={() => setSensitive(true)}>
<FaEyeSlash />
</button>
<div className="mt-2 flex flex-wrap gap-2">
Expand Down