Skip to content

Commit

Permalink
feat: make whole attachment clickable
Browse files Browse the repository at this point in the history
  • Loading branch information
KeeJef committed Mar 22, 2024
1 parent e90b643 commit 0d8f6d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stylesheets/_modules.scss
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
display: flex;
flex-direction: row;
align-items: center;
cursor: pointer;
padding: 10px;
border-radius: var(--border-radius-message-box);

Expand All @@ -73,7 +74,6 @@

.module-message__generic-attachment__icon-container {
position: relative;
cursor: pointer;
}
.module-message__generic-attachment__spinner-container {
padding-inline-start: 4px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ export const MessageAttachment = (props: Props) => {
highlight={highlight}
selected={selected}
className={'module-message__generic-attachment'}
onClick={onClickOnGenericAttachment}
>
{pending ? (
<div className="module-message__generic-attachment__spinner-container">
Expand All @@ -196,7 +197,6 @@ export const MessageAttachment = (props: Props) => {
<div
role="button"
className="module-message__generic-attachment__icon"
onClick={onClickOnGenericAttachment}
>
{extension ? (
<div className="module-message__generic-attachment__icon__extension">{extension}</div>
Expand Down

0 comments on commit 0d8f6d1

Please sign in to comment.