Skip to content

Commit

Permalink
fix some css bug (maybe)
Browse files Browse the repository at this point in the history
  • Loading branch information
syzygy608 committed Jan 18, 2025
1 parent 7e1cee5 commit 282cedb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
11 changes: 6 additions & 5 deletions src/components/pages/main/classTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,17 @@
<div class="relative inset-0">
<div
v-if="TimeMode"
id="virtualtablediv"
class="absolute w-full h-full left-0 top-0 z-20 bg-opacity-1 flex"
@contextmenu.prevent="showsearchclass">
<div class="w-[11px]">
<div class="w-[0.5rem] ">
<div class="h-10"></div>
<div
v-for="item in selectDisplay"
class="h-[52px]"
:class="{ selectDisplayColor: item.display }"></div>
</div>
<div class="table-head w-[9.5rem]"></div>
<div class="table-head w-[8.5rem]"></div>
<div class="virtualtable">
<div class="virtualtablehead"></div>
<drag-select
Expand Down Expand Up @@ -104,14 +105,14 @@
</drag-select>
</div>
</div>
<div class="z-10">
<div class="z-10 w-full flex">
<table
class="bg-orange-100 w-full border-separate"
id="class_table">
<thead>
<tr>
<th class="w-[10px] m-1">⠀</th>
<th class="table-head w-36" colspan="2">節次</th>
<th class="w-[0.5rem] m-1">⠀</th>
<th class="table-head w-[8.5rem]" colspan="2">節次</th>
<th class="table-head">星期一</th>
<th class="table-head">星期二</th>
<th class="table-head">星期三</th>
Expand Down
6 changes: 5 additions & 1 deletion src/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,15 @@ img {
.virtualtable {
@apply min-w-[8.22rem] text-center py-1.5;
}
#virtualtablediv > div {
border-collapse: separate;
display: table;
}
table {
table-layout: fixed;
}
thead > tr > th {
@apply text-center text-gray-900 py-1.5 font-semibold min-w-[9rem] border-b border-b-gray-900;
@apply text-center text-gray-900 py-1.5 font-semibold border-b border-b-gray-900;
}
.table-head {
@apply text-center text-gray-900 py-1.5 font-semibold min-w-[9rem];
Expand Down

0 comments on commit 282cedb

Please sign in to comment.