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 Dec 1, 2023
1 parent 954a1a7 commit 826d971
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion stylesheets/_modules.scss
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
display: flex;
flex-direction: row;
align-items: center;
cursor: pointer;
padding: 10px;
border-radius: var(--border-radius-message-box);

Expand All @@ -77,7 +78,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 @@ -171,7 +171,7 @@ export const MessageAttachment = (props: Props) => {
const extension = getExtensionForDisplay({ contentType, fileName });

return (
<StyledMessageHighlighter highlight={highlight} className="module-message__generic-attachment">
<StyledMessageHighlighter highlight={highlight} onClick={onClickOnGenericAttachment} className="module-message__generic-attachment">
{pending ? (
<div className="module-message__generic-attachment__spinner-container">
<Spinner size="small" />
Expand All @@ -181,7 +181,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 826d971

Please sign in to comment.