mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-12 06:06:22 +01:00
Hide media upload form if no media are attached
This commit is contained in:
parent
9add18604c
commit
ffab9d626a
@ -16,11 +16,13 @@ export default class UploadForm extends ImmutablePureComponent {
|
||||
<div className='composer--upload_form'>
|
||||
<UploadProgressContainer />
|
||||
|
||||
<div className='content'>
|
||||
{mediaIds.map(id => (
|
||||
<UploadContainer id={id} key={id} />
|
||||
))}
|
||||
</div>
|
||||
{mediaIds.size > 0 && (
|
||||
<div className='content'>
|
||||
{mediaIds.map(id => (
|
||||
<UploadContainer id={id} key={id} />
|
||||
))}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
@ -241,16 +241,14 @@
|
||||
}
|
||||
|
||||
.composer--upload_form {
|
||||
padding: 5px;
|
||||
color: $inverted-text-color;
|
||||
background: $simple-background-color;
|
||||
font-size: 14px;
|
||||
overflow: hidden;
|
||||
|
||||
& > .content {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
font-family: inherit;
|
||||
padding: 5px;
|
||||
overflow: hidden;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user