fix(mobile): flex-center pill buttons and fix learning task card layout

- learning: task-list/snippet-list use column direction (row squeeze caused
  one-char-per-line vertical text in today-task cards)
- learning/profile: fold-toggle flex-centered
- login: code-button flex-centered
- practice: transcript-toggle / bubble-action / style-chip flex-centered
- questions: filter-chip flex-centered
- sop: modal-close flex-centered with 32px hit area
- web-ai: bubble-action flex-centered
This commit is contained in:
2026-07-20 09:03:58 +08:00
parent 0a5fc9a463
commit 578592b21d
7 changed files with 54 additions and 21 deletions
+4 -1
View File
@@ -461,6 +461,9 @@ onShow(() => {
}
.code-button {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
min-height: 56px;
padding: 0 4px;
@@ -470,7 +473,7 @@ onShow(() => {
color: #e60012;
font-size: 12px;
font-weight: 700;
line-height: 1.3;
line-height: 1;
white-space: nowrap;
box-shadow: 0 6px 14px rgba(242, 11, 26, 0.06);
}
+13 -5
View File
@@ -1055,7 +1055,13 @@ onUnload(invalidateRequests);
}
.task-list,
.snippet-list,
.snippet-list {
display: flex;
flex-direction: column;
gap: 10px;
margin-top: 14px;
}
.action-list {
display: flex;
gap: 10px;
@@ -1209,17 +1215,19 @@ onUnload(invalidateRequests);
}
.fold-toggle {
display: block;
display: flex;
align-items: center;
justify-content: center;
width: 100%;
min-height: 36px;
margin: 10px 0 0;
padding: 8px 0;
padding: 0;
border: none;
border-top: 1px dashed #eceff2;
background: transparent;
color: #6b7480;
font-size: 13px;
text-align: center;
line-height: 1.5;
line-height: 1.3;
}
.fold-toggle::after {
+18 -6
View File
@@ -2763,15 +2763,19 @@ onUnload(() => {
}
.transcript-toggle {
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
min-height: 28px;
margin: 0;
padding: 4px 12px;
padding: 0 12px;
border: none;
border-radius: 8px;
background: rgba(20, 24, 31, 0.06);
color: #6b7480;
font-size: 12px;
line-height: 1.5;
line-height: 1;
}
.bubble-actions {
@@ -2783,14 +2787,18 @@ onUnload(() => {
}
.bubble-action {
display: flex;
align-items: center;
justify-content: center;
min-height: 28px;
margin: 0;
padding: 4px 12px;
padding: 0 12px;
border: 1px solid #d9e4f0;
border-radius: 999px;
background: #ffffff;
color: #38424e;
font-size: 12px;
line-height: 1.5;
line-height: 1;
}
.help-ref-list {
@@ -2832,15 +2840,19 @@ onUnload(() => {
}
.style-chip-row .chip {
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
min-height: 30px;
margin: 0;
padding: 5px 12px;
padding: 0 12px;
border: 1px solid #cddcec;
border-radius: 999px;
background: #ffffff;
color: #1f5c9d;
font-size: 13px;
line-height: 1.4;
line-height: 1;
}
.style-chip-row + .chat-composer-wrap,
+6 -4
View File
@@ -920,17 +920,19 @@ onShow(() => {
}
.fold-toggle {
display: block;
display: flex;
align-items: center;
justify-content: center;
width: 100%;
min-height: 36px;
margin: 10px 0 0;
padding: 8px 0;
padding: 0;
border: none;
border-top: 1px dashed #eceff2;
background: transparent;
color: #6b7480;
font-size: 13px;
text-align: center;
line-height: 1.5;
line-height: 1.3;
}
.fold-toggle::after {
@@ -127,7 +127,7 @@ onShow(() => { resetPageScroll(); void load(); });
.points-link { display:block; min-height:40px; margin:8px 0 0 auto; background:transparent; color:var(--knowledge); font-size:13px; font-weight:800; }
.tab-scroll { margin-top: 18px; }
.tab-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.filter-chip { width: 100%; min-width: 0; min-height: 40px; padding: 5px 4px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font-size: 13px; line-height: 1.25; }
.filter-chip { display: flex; align-items: center; justify-content: center; width: 100%; min-width: 0; min-height: 40px; padding: 0 4px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font-size: 13px; line-height: 1.25; }
.filter-chip.active { border-color: #f2a7ad; background: var(--employee-primary-soft); color: var(--brand); font-weight: 900; }
.status-message, .empty { display: grid; gap: 6px; margin-top: 16px; padding: 16px; }
.status-message { border-radius: 12px; background: #fff0f1; color: #a9000d; }
+6 -2
View File
@@ -1357,6 +1357,9 @@ onUnload(() => {
}
.modal-close {
display: flex;
align-items: center;
justify-content: center;
background: transparent;
border: none;
font-size: 24px;
@@ -1364,8 +1367,9 @@ onUnload(() => {
cursor: pointer;
padding: 0;
line-height: 1;
width: auto;
min-height: auto;
width: 32px;
height: 32px;
min-height: 32px;
}
.modal-body {
+6 -2
View File
@@ -603,14 +603,18 @@ onUnload(() => {
}
.bubble-action {
display: flex;
align-items: center;
justify-content: center;
min-height: 28px;
margin: 0;
padding: 4px 12px;
padding: 0 12px;
border: 1px solid #e3e6ea;
border-radius: 999px;
background: #f7f8fa;
color: #38424e;
font-size: 12px;
line-height: 1.5;
line-height: 1;
}
.bubble-action.primary {