Skip to content
This repository was archived by the owner on Oct 22, 2023. It is now read-only.

Commit 8a51ec7

Browse files
author
alanzhangzm
committed
NewTask.vue: fix UI
1 parent f81967b commit 8a51ec7

File tree

1 file changed

+21
-24
lines changed

1 file changed

+21
-24
lines changed

src/components/Main/NewTask.vue

Lines changed: 21 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -24,24 +24,24 @@
2424
<div class="left"></div>
2525
<div class="right">
2626
<div class="scroll-div">
27-
<table>
28-
<thead>
29-
<th style="width: 20px">
30-
<input id="file-selection-all" type="checkbox" v-model="selectAll">
31-
</th>
32-
<th>{{ $t("message.newTask.filename") }}</th>
33-
<th style="width: 60px">{{ $t("message.newTask.filetype") }}</th>
34-
<th style="width: 60px">{{ $t("message.newTask.size") }}</th>
35-
</thead>
36-
<tbody v-for="file in filesInTorrent" :key="file.index">
37-
<td style="width: 20px">
38-
<input type="checkbox" v-model="file.selected">
39-
</td>
40-
<td>{{file.name}}</td>
41-
<td style="width: 60px">{{ file.extension }}</td>
42-
<td style="width: 60px">{{ bytesToString(file.size, 1) }}</td>
43-
</tbody>
44-
</table>
27+
<table>
28+
<thead>
29+
<th style="width: 20px">
30+
<input id="file-selection-all" type="checkbox" v-model="selectAll">
31+
</th>
32+
<th>{{ $t("message.newTask.filename") }}</th>
33+
<th style="width: 60px">{{ $t("message.newTask.filetype") }}</th>
34+
<th style="width: 60px">{{ $t("message.newTask.size") }}</th>
35+
</thead>
36+
<tbody v-for="file in filesInTorrent" :key="file.index">
37+
<td style="width: 20px">
38+
<input type="checkbox" v-model="file.selected">
39+
</td>
40+
<td>{{file.name}}</td>
41+
<td style="width: 60px">{{ file.extension }}</td>
42+
<td style="width: 60px">{{ bytesToString(file.size, 1) }}</td>
43+
</tbody>
44+
</table>
4545
</div>
4646
<div class="footnote">
4747
<div class="left">
@@ -222,24 +222,21 @@ export default {
222222
<style lang="css" src="@/styles/option.css" scoped></style>
223223
<style lang="css" scoped>
224224
table {
225+
table-layout: fixed;
225226
width: 100%;
226227
text-align: left;
227228
margin: auto;
228229
font-size: 14px;
229230
color: #444;
230231
}
231232
232-
thead, tbody {
233-
max-width: 0;
233+
th, td {
234+
padding: 4px 8px;
234235
overflow: hidden;
235236
text-overflow: ellipsis;
236237
white-space: nowrap;
237238
}
238239
239-
th, td {
240-
padding: 4px 8px;
241-
}
242-
243240
th {
244241
position: sticky;
245242
top: 0;

0 commit comments

Comments
 (0)