feat: personalize and stream mentor chat
This commit is contained in:
+214
-2
@@ -11779,7 +11779,7 @@ button.account-role-badge:focus-visible { outline: 2px solid var(--blue); outlin
|
||||
height: 100%;
|
||||
min-height: 0;
|
||||
display: grid;
|
||||
grid-template-rows: auto auto auto minmax(0, 1fr) auto;
|
||||
grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
|
||||
gap: 10px;
|
||||
padding: 14px 12px 10px;
|
||||
}
|
||||
@@ -11805,6 +11805,39 @@ button.account-role-badge:focus-visible { outline: 2px solid var(--blue); outlin
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.mentor-directory-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.mentor-sort-toggle {
|
||||
min-height: 30px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
padding: 0 8px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 4px;
|
||||
background: var(--surface);
|
||||
color: var(--text-muted);
|
||||
cursor: pointer;
|
||||
font: inherit;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
.mentor-sort-toggle:hover,
|
||||
.mentor-sort-toggle.active {
|
||||
border-color: color-mix(in srgb, var(--action) 38%, var(--border));
|
||||
background: var(--action-soft);
|
||||
color: var(--action);
|
||||
}
|
||||
|
||||
.mentor-sort-toggle .lucide {
|
||||
width: 13px;
|
||||
height: 13px;
|
||||
}
|
||||
|
||||
.mentor-search-field {
|
||||
height: 40px;
|
||||
display: grid;
|
||||
@@ -11876,6 +11909,14 @@ button.account-role-badge:focus-visible { outline: 2px solid var(--blue); outlin
|
||||
outline-offset: 1px;
|
||||
}
|
||||
|
||||
.mentor-sort-hint {
|
||||
margin: 0;
|
||||
padding: 0 3px;
|
||||
color: var(--text-muted);
|
||||
font-size: 9px;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.mentor-list {
|
||||
min-height: 0;
|
||||
display: grid;
|
||||
@@ -11893,7 +11934,7 @@ button.account-role-badge:focus-visible { outline: 2px solid var(--blue); outlin
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 8px 9px;
|
||||
padding: 0 5px 0 0;
|
||||
border: 1px solid transparent;
|
||||
border-bottom-color: var(--border);
|
||||
border-radius: 4px;
|
||||
@@ -11901,6 +11942,96 @@ button.account-role-badge:focus-visible { outline: 2px solid var(--blue); outlin
|
||||
transition: border-color var(--motion-fast) ease, background-color var(--motion-fast) ease;
|
||||
}
|
||||
|
||||
.mentor-option-main {
|
||||
min-width: 0;
|
||||
min-height: 64px;
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 8px 5px 8px 9px;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
color: inherit;
|
||||
cursor: pointer;
|
||||
font: inherit;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.mentor-option-main:disabled {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.mentor-option .mentor-option-tools {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 2px;
|
||||
margin: 0;
|
||||
overflow: visible;
|
||||
color: inherit;
|
||||
font-size: inherit;
|
||||
line-height: normal;
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
.mentor-pin-button,
|
||||
.mentor-order-button {
|
||||
width: 28px;
|
||||
min-width: 28px;
|
||||
height: 30px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
border-radius: 4px;
|
||||
background: transparent;
|
||||
color: var(--text-muted);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.mentor-pin-button:hover,
|
||||
.mentor-order-button:hover:not(:disabled) {
|
||||
background: var(--surface-muted);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.mentor-pin-button.active {
|
||||
background: #fff7df;
|
||||
color: #9a6815;
|
||||
}
|
||||
|
||||
.mentor-pin-button.active .lucide {
|
||||
fill: currentColor;
|
||||
}
|
||||
|
||||
.mentor-pin-button .lucide,
|
||||
.mentor-order-button .lucide {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
}
|
||||
|
||||
.mentor-order-button:disabled {
|
||||
color: color-mix(in srgb, var(--text-muted) 35%, transparent);
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.mentor-list.is-sorting .mentor-option {
|
||||
cursor: grab;
|
||||
}
|
||||
|
||||
.mentor-list.is-sorting .mentor-option-badges {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.mentor-option.is-dragging {
|
||||
opacity: 0.45;
|
||||
}
|
||||
|
||||
.mentor-option.is-drag-over {
|
||||
border-color: var(--action);
|
||||
background: var(--action-soft);
|
||||
}
|
||||
|
||||
.mentor-option:hover {
|
||||
border-color: var(--border-strong);
|
||||
background: var(--surface);
|
||||
@@ -11923,6 +12054,16 @@ button.account-role-badge:focus-visible { outline: 2px solid var(--blue); outlin
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.mentor-option .mentor-option-copy {
|
||||
display: grid;
|
||||
margin: 0;
|
||||
overflow: visible;
|
||||
color: inherit;
|
||||
font-size: inherit;
|
||||
line-height: normal;
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
.mentor-option-copy strong {
|
||||
overflow: hidden;
|
||||
font-size: 13px;
|
||||
@@ -11949,6 +12090,16 @@ button.account-role-badge:focus-visible { outline: 2px solid var(--blue); outlin
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.mentor-option .mentor-option-badges {
|
||||
display: flex;
|
||||
margin: 0;
|
||||
overflow: visible;
|
||||
color: inherit;
|
||||
font-size: inherit;
|
||||
line-height: normal;
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
.mentor-option-badges {
|
||||
max-width: 76px;
|
||||
}
|
||||
@@ -11971,6 +12122,13 @@ button.account-role-badge:focus-visible { outline: 2px solid var(--blue); outlin
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.mentor-option .mentor-badge {
|
||||
display: inline-flex;
|
||||
margin: 0;
|
||||
overflow: visible;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.mentor-badge .lucide {
|
||||
width: 11px;
|
||||
height: 11px;
|
||||
@@ -12057,6 +12215,47 @@ button.account-role-badge:focus-visible { outline: 2px solid var(--blue); outlin
|
||||
max-height: none;
|
||||
}
|
||||
|
||||
.mentor-message {
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.mentor-message-content {
|
||||
line-height: 1.62;
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
.mentor-message .mentor-answer-paragraph {
|
||||
margin: 0 0 6px;
|
||||
line-height: inherit;
|
||||
}
|
||||
|
||||
.mentor-message .mentor-answer-paragraph:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.mentor-answer-heading {
|
||||
display: block;
|
||||
margin: 9px 0 4px;
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
.mentor-message-content > .mentor-answer-heading:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.mentor-answer-list {
|
||||
margin: 3px 0 7px;
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
.mentor-answer-list li + li {
|
||||
margin-top: 3px;
|
||||
}
|
||||
|
||||
.mentor-message.is-error {
|
||||
border-color: var(--danger);
|
||||
}
|
||||
|
||||
@media (min-width: 721px) and (max-width: 1023px) {
|
||||
.mentor-layout {
|
||||
grid-template-columns: 280px minmax(0, 1fr);
|
||||
@@ -12181,6 +12380,12 @@ button.account-role-badge:focus-visible { outline: 2px solid var(--blue); outlin
|
||||
display: grid;
|
||||
}
|
||||
|
||||
.mentor-sort-toggle {
|
||||
min-height: 44px;
|
||||
padding: 0 10px;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.mentor-search-field {
|
||||
height: 44px;
|
||||
}
|
||||
@@ -12199,6 +12404,13 @@ button.account-role-badge:focus-visible { outline: 2px solid var(--blue); outlin
|
||||
min-height: 68px;
|
||||
}
|
||||
|
||||
.mentor-pin-button,
|
||||
.mentor-order-button {
|
||||
width: 40px;
|
||||
min-width: 40px;
|
||||
height: 44px;
|
||||
}
|
||||
|
||||
.mentor-chat-panel {
|
||||
min-height: 580px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user