chore(front/file-uploader): remove unnecessary css, container, update col-grow class names

This commit is contained in:
Alice Gaudon 2022-03-05 10:11:19 +01:00
parent 1b5e088d74
commit c025aa2539

View File

@ -71,23 +71,6 @@
} }
} }
.actions {
display: flex;
flex-direction: row;
:global(button) {
padding: 8px;
}
:global(button .icon) {
margin: 0 !important;
}
:global(button .tip) {
display: none;
}
}
.new-files { .new-files {
h3 { h3 {
text-align: center; text-align: center;
@ -116,7 +99,6 @@
<BaseTemplate title="{$locals.app.name} - Upload file" description="File upload web interface." noH1> <BaseTemplate title="{$locals.app.name} - Upload file" description="File upload web interface." noH1>
<h1>Upload files</h1> <h1>Upload files</h1>
<div class="container">
<section class="panel"> <section class="panel">
<h2> <h2>
<Icon name="upload"/> <Icon name="upload"/>
@ -195,7 +177,7 @@
<thead> <thead>
<tr> <tr>
<th>#</th> <th>#</th>
<th class="table-col-grow">Name</th> <th class="col-grow">Name</th>
<th>Size</th> <th>Size</th>
<th>Expires in</th> <th>Expires in</th>
<th>Actions</th> <th>Actions</th>
@ -206,7 +188,7 @@
{#each $locals.files as file} {#each $locals.files as file}
<tr> <tr>
<td>{file.id}</td> <td>{file.id}</td>
<td class="table-col-grow-cell"><a href="{file.url}"> <td class="col-grow-cell"><a href="{file.url}">
<pre>{file.real_name}</pre> <pre>{file.real_name}</pre>
</a></td> </a></td>
<td>{(file.size / (1024 * 1024)).toFixed(2)}MB</td> <td>{(file.size / (1024 * 1024)).toFixed(2)}MB</td>
@ -241,5 +223,4 @@
<Pagination pagination={$locals.pagination} routeName="file-uploader" contextSize={3}/> <Pagination pagination={$locals.pagination} routeName="file-uploader" contextSize={3}/>
</section> </section>
</div>
</BaseTemplate> </BaseTemplate>