tweak: remove redundant hr and css

This commit is contained in:
alvaromartmart 2024-06-26 08:12:43 +02:00
parent 23335df9a4
commit ab533b9c6b
2 changed files with 3 additions and 18 deletions

View file

@ -45,15 +45,3 @@
max-width: 80%;
box-shadow: 0 12px 28px 0 rgba(0,0,0,.2), 0 2px 4px 0 rgba(0,0,0,.1);
}
.attachment-item .attachment-item__text {
display: block;
width: 100%;
border: 1px solid var(--vscode-panel-border);
border-radius: 2px;
padding: 0.5rem;
}
.attachment-item hr {
border: 0.2px solid var(--vscode-panel-border);
}

View file

@ -124,12 +124,9 @@ export const AttachmentsTab: React.FunctionComponent<{
})}
{attachments.size ? <div className='attachments-section'>Attachments</div> : undefined}
{[...attachments.values()].map((a, i) => {
return <>
{ i > 0 && <hr /> }
<div className='attachment-item' key={`attachment-${i}`}>
<ExpandableAttachment attachment={a} />
</div>
</>;
return <div className='attachment-item' key={`attachment-${i}`}>
<ExpandableAttachment attachment={a} />
</div>;
})}
</div>;
};