Skip to content

Commit f21ab18

Browse files
authored
Merge pull request #2384 from AtCoder-NoviSteps/#1527
🎨 Fix table cell width (#1527)
2 parents d77a6d2 + fca9b52 commit f21ab18

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/lib/components/WorkBookTasks/WorkBookTasksTable.svelte

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@
150150
<Table shadow class="text-md table-fixed w-full" aria-label="Workbook tasks">
151151
<caption class="sr-only">List of workbook tasks with their grades and comments</caption>
152152
<TableHead class="text-sm bg-gray-100">
153-
<TableHeadCell class="w-6 pl-2 md:pl-4 pr-0 text-center">#</TableHeadCell>
154-
<TableHeadCell class="w-20 xs:w-24 text-center px-0" aria-label="Task grade">
153+
<TableHeadCell class="w-10 pl-3 pr-3 text-center">#</TableHeadCell>
154+
<TableHeadCell class="w-16 xs:w-20 text-center px-0" aria-label="Task grade">
155155
グレード
156156
</TableHeadCell>
157157
<TableHeadCell class="w-1/2 pl-0 truncate">問題名</TableHeadCell>
@@ -168,17 +168,15 @@
168168
{#each workBookTasksForTable as task, index}
169169
<TableBodyRow>
170170
<!-- ID -->
171-
<TableBodyCell
172-
class="xs:text-lg text-gray-700 dark:text-gray-300 truncate pl-2 md:pl-4 pr-0"
173-
>
174-
<div class="flex justify-center items-center">
171+
<TableBodyCell class="xs:text-lg text-gray-700 dark:text-gray-300 truncate pl-6 pr-3">
172+
<div class="flex justify-center items-center h-full">
175173
<!-- HACK: 1-indexedにしているが、0-indexedで揃えた方がいい? -->
176174
{index + 1}
177175
</div>
178176
</TableBodyCell>
179177

180178
<!-- グレード -->
181-
<TableBodyCell class="w-20 xs:w-24">
179+
<TableBodyCell>
182180
<div class="flex items-center justify-center">
183181
<GradeLabel taskGrade={getTaskGrade(tasksMapByIds, task.taskId)} />
184182
</div>

0 commit comments

Comments
 (0)