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), // TODO: this view is not always in focus (e.g. after I've selected a message),
// so need to make Esc more robust // so need to make Esc more robust
// Perhaps look into ConversationHeader.tsx and add an event listener in there. // 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.model.resetMessageSelection();
this.closeEmojiPanel(); this.closeEmojiPanel();
}, },

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

@ -79,8 +79,16 @@
} }
.module-attachment-section__items { .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 { .module-media {

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

Loading…
Cancel
Save