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:
@@ -461,6 +461,9 @@ onShow(() => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.code-button {
|
.code-button {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
min-height: 56px;
|
min-height: 56px;
|
||||||
padding: 0 4px;
|
padding: 0 4px;
|
||||||
@@ -470,7 +473,7 @@ onShow(() => {
|
|||||||
color: #e60012;
|
color: #e60012;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
line-height: 1.3;
|
line-height: 1;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
box-shadow: 0 6px 14px rgba(242, 11, 26, 0.06);
|
box-shadow: 0 6px 14px rgba(242, 11, 26, 0.06);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1055,7 +1055,13 @@ onUnload(invalidateRequests);
|
|||||||
}
|
}
|
||||||
|
|
||||||
.task-list,
|
.task-list,
|
||||||
.snippet-list,
|
.snippet-list {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 10px;
|
||||||
|
margin-top: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
.action-list {
|
.action-list {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
@@ -1209,17 +1215,19 @@ onUnload(invalidateRequests);
|
|||||||
}
|
}
|
||||||
|
|
||||||
.fold-toggle {
|
.fold-toggle {
|
||||||
display: block;
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
min-height: 36px;
|
||||||
margin: 10px 0 0;
|
margin: 10px 0 0;
|
||||||
padding: 8px 0;
|
padding: 0;
|
||||||
border: none;
|
border: none;
|
||||||
border-top: 1px dashed #eceff2;
|
border-top: 1px dashed #eceff2;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
color: #6b7480;
|
color: #6b7480;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
text-align: center;
|
line-height: 1.3;
|
||||||
line-height: 1.5;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.fold-toggle::after {
|
.fold-toggle::after {
|
||||||
|
|||||||
@@ -2763,15 +2763,19 @@ onUnload(() => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.transcript-toggle {
|
.transcript-toggle {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
|
min-height: 28px;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 4px 12px;
|
padding: 0 12px;
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
background: rgba(20, 24, 31, 0.06);
|
background: rgba(20, 24, 31, 0.06);
|
||||||
color: #6b7480;
|
color: #6b7480;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
line-height: 1.5;
|
line-height: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bubble-actions {
|
.bubble-actions {
|
||||||
@@ -2783,14 +2787,18 @@ onUnload(() => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.bubble-action {
|
.bubble-action {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
min-height: 28px;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 4px 12px;
|
padding: 0 12px;
|
||||||
border: 1px solid #d9e4f0;
|
border: 1px solid #d9e4f0;
|
||||||
border-radius: 999px;
|
border-radius: 999px;
|
||||||
background: #ffffff;
|
background: #ffffff;
|
||||||
color: #38424e;
|
color: #38424e;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
line-height: 1.5;
|
line-height: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.help-ref-list {
|
.help-ref-list {
|
||||||
@@ -2832,15 +2840,19 @@ onUnload(() => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.style-chip-row .chip {
|
.style-chip-row .chip {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
|
min-height: 30px;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 5px 12px;
|
padding: 0 12px;
|
||||||
border: 1px solid #cddcec;
|
border: 1px solid #cddcec;
|
||||||
border-radius: 999px;
|
border-radius: 999px;
|
||||||
background: #ffffff;
|
background: #ffffff;
|
||||||
color: #1f5c9d;
|
color: #1f5c9d;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
line-height: 1.4;
|
line-height: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.style-chip-row + .chat-composer-wrap,
|
.style-chip-row + .chat-composer-wrap,
|
||||||
|
|||||||
@@ -920,17 +920,19 @@ onShow(() => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.fold-toggle {
|
.fold-toggle {
|
||||||
display: block;
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
min-height: 36px;
|
||||||
margin: 10px 0 0;
|
margin: 10px 0 0;
|
||||||
padding: 8px 0;
|
padding: 0;
|
||||||
border: none;
|
border: none;
|
||||||
border-top: 1px dashed #eceff2;
|
border-top: 1px dashed #eceff2;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
color: #6b7480;
|
color: #6b7480;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
text-align: center;
|
line-height: 1.3;
|
||||||
line-height: 1.5;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.fold-toggle::after {
|
.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; }
|
.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-scroll { margin-top: 18px; }
|
||||||
.tab-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
|
.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; }
|
.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, .empty { display: grid; gap: 6px; margin-top: 16px; padding: 16px; }
|
||||||
.status-message { border-radius: 12px; background: #fff0f1; color: #a9000d; }
|
.status-message { border-radius: 12px; background: #fff0f1; color: #a9000d; }
|
||||||
|
|||||||
@@ -1357,6 +1357,9 @@ onUnload(() => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.modal-close {
|
.modal-close {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
border: none;
|
border: none;
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
@@ -1364,8 +1367,9 @@ onUnload(() => {
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
width: auto;
|
width: 32px;
|
||||||
min-height: auto;
|
height: 32px;
|
||||||
|
min-height: 32px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal-body {
|
.modal-body {
|
||||||
|
|||||||
@@ -603,14 +603,18 @@ onUnload(() => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.bubble-action {
|
.bubble-action {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
min-height: 28px;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 4px 12px;
|
padding: 0 12px;
|
||||||
border: 1px solid #e3e6ea;
|
border: 1px solid #e3e6ea;
|
||||||
border-radius: 999px;
|
border-radius: 999px;
|
||||||
background: #f7f8fa;
|
background: #f7f8fa;
|
||||||
color: #38424e;
|
color: #38424e;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
line-height: 1.5;
|
line-height: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bubble-action.primary {
|
.bubble-action.primary {
|
||||||
|
|||||||
Reference in New Issue
Block a user