Cleanup media view formatting

pull/760/head
Vincent 5 years ago
parent ae01b11478
commit f55e20d8ac

@ -1742,6 +1742,8 @@
// TODO: this view is not always in focus (e.g. after I've selected a message),
// so need to make Esc more robust
// Perhaps look into ConversationHeader.tsx and add an event listener in there.
// Up and down arrows should scroll
// Alt + up and down should swap between conversations / setting categories
this.model.resetMessageSelection();
this.closeEmojiPanel();
},

@ -1736,6 +1736,7 @@
// Module: Document List Item
.module-document-list-item {
padding-right: 10px;
width: 100%;
height: 72px;
}

@ -79,8 +79,16 @@
}
.module-attachment-section__items {
display: grid;
grid-template-columns: repeat(3, 1fr);
&-media {
display: grid;
grid-template-columns: repeat(3, 1fr);
width: 100%;
}
&-documents {
width: 100%;
}
}
.module-media {

@ -15,11 +15,15 @@ interface Props {
}
export class AttachmentSection extends React.Component<Props> {
public render() {
public render() {
const { type } = this.props;
return (
<div className="module-attachment-section">
<div className="module-attachment-section__items">
{this.renderItems()}
<div className={`module-attachment-section__items-${type}`}>
{this.renderItems()}
</div>
</div>
</div>
);

Loading…
Cancel
Save