Skip to content

Commit 3bf2ce7

Browse files
committed
fix: タイムテーブルの横スクロールのみ可能に変更
- テーブル内部での縦スクロールを無効化 - (他ページ同様の) 縦スクロールに変更
1 parent dc7d66c commit 3bf2ce7

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

_pages/time-table.html

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ <h2 class="text-4xl text-center mb-8">
2222
Time table
2323
<span class="block mt-3 text-2xl">タイムテーブル</span>
2424
</h2>
25-
<div class="overflow-x-auto overflow-y-auto h-[500px] border-[1px] border-[#e6e6e9]" aria-label="タイムテーブル(横スクロール可)">
25+
<div class="overflow-x-auto border-[1px] border-[#e6e6e9]" aria-label="タイムテーブル(横スクロール可)">
2626
<table class="ttable" style="--room-count: {{ rooms | size }};">
2727
<caption>
2828
{{ site.date_event }} のタイムテーブル
@@ -62,11 +62,9 @@ <h2 class="text-4xl text-center mb-8">
6262
rowspan="{{ event.duration }}"
6363
style="--span: {{ event.duration }};">
6464
<div class="ttable__event" style="--accent: {{ accent }};">
65-
<div class="sticky top-[50px]">
66-
<div class="ttable__event-time" >{{ event.start }}–{{ event.end }}</div>
67-
<div class="ttable__event-title">{{ event.title }}</div>
68-
{% if event.subtitle %}<div class="ttable__event-subtitle">{{ event.subtitle }}</div>{% endif %}
69-
</div>
65+
<div class="ttable__event-time" >{{ event.start }}–{{ event.end }}</div>
66+
<div class="ttable__event-title">{{ event.title }}</div>
67+
{% if event.subtitle %}<div class="ttable__event-subtitle">{{ event.subtitle }}</div>{% endif %}
7068
{% if event.badge %}<span class="ttable__badge">{{ event.badge }}</span>{% endif %}
7169
{% if event.note %}<div class="ttable__event-note">{{ event.note }}</div>{% endif %}
7270
</div>

_sass/pages/time-table.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44
width: 100%;
55
max-width: 100%;
66
overflow-x: auto;
7-
overflow-y: auto;
7+
overflow-y: visible;
88
-webkit-overflow-scrolling: touch;
9+
overscroll-behavior-x: contain;
910
contain: content;
11+
scrollbar-gutter: stable both-edges;
1012
}
1113

1214
/* ====== テーブル ======

0 commit comments

Comments
 (0)