Skip to content

Commit 3c82940

Browse files
committed
タイムテーブルの最大幅を削除した
1 parent 790c8bf commit 3c82940

File tree

2 files changed

+3
-16
lines changed

2 files changed

+3
-16
lines changed

_pages/time-table.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@
1717
{% assign total_slots = tte.total_slots %}
1818
{% assign total_rooms = tte.total_rooms %}
1919

20-
<section class="w-[calc(100dvw-40px)] max-w-7xl mx-auto mt-25 xl:mt-15">
20+
<section class="w-full mt-25 xl:mt-15">
2121
<h2 class="text-4xl text-center mb-8">
2222
タイムテーブル
2323
<span class="block mt-3 text-2xl">TIME TABLE</span>
2424
</h2>
25-
<div class="overflow-x-auto border-[1px] border-[#e6e6e9]" aria-label="タイムテーブル(横スクロール可)">
26-
<table class="ttable" style="--room-count: {{ rooms | size }};">
25+
<div class="overflow-x-auto w-[calc(100dvw-2rem)] mx-auto" aria-label="タイムテーブル(横スクロール可)">
26+
<table class="ttable border-[1px] border-[#e6e6e9]" style="--room-count: {{ rooms | size }};">
2727
<thead>
2828
<tr>
2929
<th scope="col" class="ttable__th ttable__th--start">時間</th>

_sass/pages/time-table.scss

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,3 @@
1-
/* ====== スクロール容器 ====== */
2-
.ttable-wrap{
3-
position: relative;
4-
width: 100%;
5-
max-width: 100%;
6-
overflow-x: auto;
7-
overflow-y: visible;
8-
-webkit-overflow-scrolling: touch;
9-
overscroll-behavior-x: contain;
10-
contain: content;
11-
scrollbar-gutter: stable both-edges;
12-
}
13-
141
/* ====== テーブル ======
152
PCでも「時間は4桁」「会場は全文表示」できるように
163
table-layout: fixed と最小幅制約を組み合わせる

0 commit comments

Comments
 (0)