Commit ·
a4e9a81
1
Parent(s): cd0b545
fix: スマホで「入力する」ボタンが改行される問題を修正
Browse filesボタンに flex-shrink-0 を付与し、日付テキスト側に min-width:0 を追加することで
狭い画面幅でもボタンが折り返さないよう修正。
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
templates/shifts/index.html
CHANGED
|
@@ -51,17 +51,17 @@
|
|
| 51 |
{% for period in periods %}
|
| 52 |
<div class="card mb-2">
|
| 53 |
<div class="card-body py-2 px-3 d-flex align-items-center gap-2">
|
| 54 |
-
<div class="flex-grow-1">
|
| 55 |
<div class="fw-semibold">{{ period.start_date }} 〜 {{ period.end_date }}</div>
|
| 56 |
<span class="badge {{ 'bg-success' if period.status == 'confirmed' else 'bg-secondary' }}">
|
| 57 |
{{ '確定' if period.status == 'confirmed' else '下書き' }}
|
| 58 |
</span>
|
| 59 |
</div>
|
| 60 |
<a href="{{ url_for('shifts.input', period_id=period.id) }}"
|
| 61 |
-
class="btn btn-outline-primary btn-sm">
|
| 62 |
入力する
|
| 63 |
</a>
|
| 64 |
-
<button type="button" class="btn btn-outline-danger btn-sm"
|
| 65 |
onclick="confirmDelete({{ period.id }}, '{{ period.start_date }} 〜 {{ period.end_date }}')">
|
| 66 |
<i class="bi bi-trash3"></i>
|
| 67 |
</button>
|
|
|
|
| 51 |
{% for period in periods %}
|
| 52 |
<div class="card mb-2">
|
| 53 |
<div class="card-body py-2 px-3 d-flex align-items-center gap-2">
|
| 54 |
+
<div class="flex-grow-1 min-w-0" style="min-width:0">
|
| 55 |
<div class="fw-semibold">{{ period.start_date }} 〜 {{ period.end_date }}</div>
|
| 56 |
<span class="badge {{ 'bg-success' if period.status == 'confirmed' else 'bg-secondary' }}">
|
| 57 |
{{ '確定' if period.status == 'confirmed' else '下書き' }}
|
| 58 |
</span>
|
| 59 |
</div>
|
| 60 |
<a href="{{ url_for('shifts.input', period_id=period.id) }}"
|
| 61 |
+
class="btn btn-outline-primary btn-sm flex-shrink-0">
|
| 62 |
入力する
|
| 63 |
</a>
|
| 64 |
+
<button type="button" class="btn btn-outline-danger btn-sm flex-shrink-0"
|
| 65 |
onclick="confirmDelete({{ period.id }}, '{{ period.start_date }} 〜 {{ period.end_date }}')">
|
| 66 |
<i class="bi bi-trash3"></i>
|
| 67 |
</button>
|