スマホ版のUIを改善
This commit is contained in:
@@ -363,13 +363,17 @@ tr.kb-focus {
|
|||||||
.custom-table thead {
|
.custom-table thead {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
.custom-table tbody tr {
|
.custom-table tbody tr.assignment-row,
|
||||||
|
.custom-table tbody tr.recurring-row,
|
||||||
|
.custom-table tbody tr.user-row {
|
||||||
display: block;
|
display: block;
|
||||||
position: relative;
|
position: relative;
|
||||||
padding: 0.75rem;
|
padding: 0.75rem;
|
||||||
border-bottom: 1px solid #dee2e6;
|
border-bottom: 1px solid #dee2e6;
|
||||||
}
|
}
|
||||||
.custom-table tbody td {
|
.custom-table tbody tr.assignment-row td,
|
||||||
|
.custom-table tbody tr.recurring-row td,
|
||||||
|
.custom-table tbody tr.user-row td {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
border: none;
|
border: none;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
@@ -385,25 +389,21 @@ tr.kb-focus {
|
|||||||
top: 0.75rem;
|
top: 0.75rem;
|
||||||
left: 2.25rem;
|
left: 2.25rem;
|
||||||
}
|
}
|
||||||
tr.assignment-row td:nth-child(5) {
|
|
||||||
display: block;
|
|
||||||
margin-left: 3.5rem;
|
|
||||||
margin-right: 4rem;
|
|
||||||
margin-bottom: 0.5rem;
|
|
||||||
}
|
|
||||||
tr.assignment-row td:nth-child(8) {
|
|
||||||
position: absolute;
|
|
||||||
top: 0.75rem;
|
|
||||||
right: 0.75rem;
|
|
||||||
}
|
|
||||||
tr.assignment-row td:nth-child(3) {
|
tr.assignment-row td:nth-child(3) {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
margin-left: 4rem;
|
||||||
margin-right: 0.5rem;
|
margin-right: 0.5rem;
|
||||||
}
|
}
|
||||||
tr.assignment-row td:nth-child(4) {
|
tr.assignment-row td:nth-child(4) {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin-right: 0.5rem;
|
margin-right: 0.5rem;
|
||||||
}
|
}
|
||||||
|
tr.assignment-row td:nth-child(5) {
|
||||||
|
display: block;
|
||||||
|
margin-left: 0;
|
||||||
|
margin-right: 4rem;
|
||||||
|
margin-bottom: 0.5rem;
|
||||||
|
}
|
||||||
tr.assignment-row td:nth-child(6) {
|
tr.assignment-row td:nth-child(6) {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin-right: 0.5rem;
|
margin-right: 0.5rem;
|
||||||
@@ -411,6 +411,11 @@ tr.kb-focus {
|
|||||||
tr.assignment-row td:nth-child(7) {
|
tr.assignment-row td:nth-child(7) {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
tr.assignment-row td:nth-child(8) {
|
||||||
|
position: absolute;
|
||||||
|
top: 0.75rem;
|
||||||
|
right: 0.75rem;
|
||||||
|
}
|
||||||
.countdown-col {
|
.countdown-col {
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
font-size: 0.75rem;
|
font-size: 0.75rem;
|
||||||
@@ -421,17 +426,17 @@ tr.kb-focus {
|
|||||||
margin-bottom: 0.5rem;
|
margin-bottom: 0.5rem;
|
||||||
margin-right: 3rem;
|
margin-right: 3rem;
|
||||||
}
|
}
|
||||||
tr.recurring-row td:nth-child(5) {
|
|
||||||
position: absolute;
|
|
||||||
top: 0.75rem;
|
|
||||||
right: 0.75rem;
|
|
||||||
}
|
|
||||||
tr.recurring-row td:nth-child(2),
|
tr.recurring-row td:nth-child(2),
|
||||||
tr.recurring-row td:nth-child(3),
|
tr.recurring-row td:nth-child(3),
|
||||||
tr.recurring-row td:nth-child(4) {
|
tr.recurring-row td:nth-child(4) {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin-right: 0.5rem;
|
margin-right: 0.5rem;
|
||||||
}
|
}
|
||||||
|
tr.recurring-row td:nth-child(5) {
|
||||||
|
position: absolute;
|
||||||
|
top: 0.75rem;
|
||||||
|
right: 0.75rem;
|
||||||
|
}
|
||||||
|
|
||||||
tr.user-row td:nth-child(1),
|
tr.user-row td:nth-child(1),
|
||||||
tr.user-row td:nth-child(5) {
|
tr.user-row td:nth-child(5) {
|
||||||
@@ -448,28 +453,28 @@ tr.kb-focus {
|
|||||||
color: #6c757d;
|
color: #6c757d;
|
||||||
margin-bottom: 0.5rem;
|
margin-bottom: 0.5rem;
|
||||||
}
|
}
|
||||||
|
tr.user-row td:nth-child(4) {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
tr.user-row td:nth-child(6) {
|
tr.user-row td:nth-child(6) {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0.75rem;
|
top: 0.75rem;
|
||||||
right: 0.75rem;
|
right: 0.75rem;
|
||||||
}
|
}
|
||||||
tr.user-row td:nth-child(4) {
|
|
||||||
display: inline-block;
|
|
||||||
}
|
|
||||||
|
|
||||||
.stats-table {
|
.stats-table {
|
||||||
min-width: auto !important;
|
min-width: auto !important;
|
||||||
}
|
}
|
||||||
tr.subject-row td:nth-child(3),
|
|
||||||
tr.subject-row td:nth-child(4),
|
|
||||||
tr.subject-row td:nth-child(5) {
|
|
||||||
display: none !important;
|
|
||||||
}
|
|
||||||
.stats-table thead th:nth-child(3),
|
.stats-table thead th:nth-child(3),
|
||||||
.stats-table thead th:nth-child(4),
|
.stats-table thead th:nth-child(4),
|
||||||
.stats-table thead th:nth-child(5) {
|
.stats-table thead th:nth-child(5) {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
tr.subject-row td:nth-child(3),
|
||||||
|
tr.subject-row td:nth-child(4),
|
||||||
|
tr.subject-row td:nth-child(5) {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
.dashboard-stat-card .display-4 {
|
.dashboard-stat-card .display-4 {
|
||||||
font-size: 1.5rem !important;
|
font-size: 1.5rem !important;
|
||||||
@@ -492,6 +497,10 @@ tr.kb-focus {
|
|||||||
flex-wrap: nowrap;
|
flex-wrap: nowrap;
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
-webkit-overflow-scrolling: touch;
|
-webkit-overflow-scrolling: touch;
|
||||||
|
scrollbar-width: none;
|
||||||
|
}
|
||||||
|
.nav-tabs#assignmentTabs::-webkit-scrollbar {
|
||||||
|
display: none;
|
||||||
}
|
}
|
||||||
.nav-tabs#assignmentTabs .ms-auto {
|
.nav-tabs#assignmentTabs .ms-auto {
|
||||||
margin-left: 0 !important;
|
margin-left: 0 !important;
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
<div class="d-flex flex-column flex-md-row justify-content-between align-items-md-center mb-3 gap-2">
|
<div class="d-flex flex-column flex-md-row justify-content-between align-items-md-center mb-3 gap-2">
|
||||||
<h4 class="mb-0 fw-bold"><i class="bi bi-list-task me-2" aria-hidden="true"></i>課題一覧</h4>
|
<h4 class="mb-0 fw-bold"><i class="bi bi-list-task me-2" aria-hidden="true"></i>課題一覧</h4>
|
||||||
<div class="d-flex gap-2 align-items-stretch align-items-md-center">
|
<div class="d-flex gap-2 align-items-center flex-wrap">
|
||||||
<div class="btn-group btn-group-sm" role="group" aria-label="表示切替">
|
<div class="btn-group btn-group-sm" role="group" aria-label="表示切替">
|
||||||
<button type="button" class="btn btn-outline-secondary" id="viewTableBtn" onclick="setView('table')" title="テーブル表示">
|
<button type="button" class="btn btn-outline-secondary" id="viewTableBtn" onclick="setView('table')" title="テーブル表示">
|
||||||
<i class="bi bi-table" aria-hidden="true"></i>
|
<i class="bi bi-table" aria-hidden="true"></i>
|
||||||
@@ -14,13 +14,13 @@
|
|||||||
<i class="bi bi-kanban" aria-hidden="true"></i>
|
<i class="bi bi-kanban" aria-hidden="true"></i>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<button class="btn btn-sm btn-outline-secondary flex-fill" id="groupToggleBtn" onclick="toggleGrouping()" title="科目でグループ化">
|
<button class="btn btn-sm btn-outline-secondary" id="groupToggleBtn" onclick="toggleGrouping()" title="科目でグループ化">
|
||||||
<i class="bi bi-collection me-1" aria-hidden="true"></i><span id="groupBtnText" class="d-none d-sm-inline">グループ化</span>
|
<i class="bi bi-collection me-1" aria-hidden="true"></i><span id="groupBtnText" class="d-none d-sm-inline">グループ化</span>
|
||||||
</button>
|
</button>
|
||||||
<button class="btn btn-sm btn-secondary text-white flex-fill" onclick="toggleCountdown()" id="toggleCountdownBtn" aria-pressed="false">
|
<button class="btn btn-sm btn-secondary text-white" onclick="toggleCountdown()" id="toggleCountdownBtn" aria-pressed="false">
|
||||||
<i class="bi bi-clock me-1" aria-hidden="true"></i><span id="countdownBtnText" class="d-none d-sm-inline">残り非表示</span>
|
<i class="bi bi-clock me-1" aria-hidden="true"></i><span id="countdownBtnText" class="d-none d-sm-inline">残り非表示</span>
|
||||||
</button>
|
</button>
|
||||||
<a href="/assignments/new" class="btn btn-sm btn-primary flex-fill text-nowrap text-center">
|
<a href="/assignments/new" class="btn btn-sm btn-primary">
|
||||||
<i class="bi bi-plus-lg me-1" aria-hidden="true"></i>新規登録
|
<i class="bi bi-plus-lg me-1" aria-hidden="true"></i>新規登録
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user