Simplify structure and fix styling

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2020-07-31 22:37:44 +02:00
parent ce0d2a0d41
commit 7fccb032e3
3 changed files with 50 additions and 54 deletions

View File

@@ -30,8 +30,7 @@
style="display: none;"
multiple
@change="handleUploadFile">
<div class="attachment-list">
<ul>
<ul class="attachment-list">
<li v-for="attachment in uploadQueue" :key="attachment.name" class="attachment">
<a class="fileicon" :style="mimetypeForAttachment('none')" />
<div class="details">
@@ -43,9 +42,6 @@
</a>
</div>
</li>
<div class="attachment-list">
<ul>
<li v-for="attachment in attachments"
:key="attachment.id"
class="attachment">
@@ -76,9 +72,6 @@
</Actions>
</li>
</ul>
</div>
</ul>
</div>
</AttachmentDragAndDrop>
</template>

View File

@@ -633,13 +633,16 @@ export default {
width: 25vw;
min-width: 250px;
min-height: 120px;
margin: 20px 20px 60px 20px;
margin: 20px;
padding-bottom: 20px;
}
display: flex;
flex-direction: column;
.modal__content button {
float: right;
margin: 40px 3px 3px 0;
&::v-deep .attachment-list {
flex-shrink: 1;
overflow: scroll;
max-height: 50vh;
}
}
</style>

View File

@@ -32,5 +32,5 @@ const config = {
}
};
module.exports = merge(config, webpackConfig)
module.exports = merge(webpackConfig, config)