Skip to content

Commit 35e344d

Browse files
committed
💄(attachments): Fix file attachment styles
1 parent c974e7c commit 35e344d

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

internal_packages/attachments/lib/message-attachments.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ import {AttachmentItem, ImageAttachmentItem} from 'nylas-component-kit'
44

55

66
class MessageAttachments extends Component {
7-
static displayName= 'MessageAttachments'
7+
static displayName = 'MessageAttachments'
8+
9+
static containerRequired = false
810

911
static propTypes = {
1012
files: PropTypes.array,

static/components/attachment-items.less

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
}
2424

2525
.file-thumbnail-preview {
26+
width: 100%;
2627
max-height: 64px;
2728
text-align: left;
2829
overflow: hidden;
@@ -56,8 +57,9 @@
5657
.file-info-wrap {
5758
display: flex;
5859
align-items: center;
60+
flex-grow: 2;
61+
min-width: 85%;
5962
padding: 10px;
60-
width: 100%;
6163
height: 105%;
6264
border: solid 1px @attachment-border-color;
6365
border-top-left-radius: 8px;
@@ -100,6 +102,8 @@
100102
align-items: center;
101103
justify-content: center;
102104
flex-shrink: 0;
105+
flex-grow: 0;
106+
flex-basis: 38px;
103107
margin-left: auto;
104108
padding: 10px;
105109
height: 105%;

0 commit comments

Comments
 (0)