feat(FN-2570): add mobile per-message chat render toggles
- Track plain-text render mode per assistant message (including streaming output) in ChatView state - Add inline mobile-only Eye/EyeOff toggle buttons on assistant bubbles to switch markdown vs plain text per message - Hide the header markdown/plain toggle on mobile and polish inline toggle sizing, focus, and hover styles in ChatView.css - Extend ChatView tests with mobile viewport coverage for toggle rendering, per-message isolation, round-trip toggling, and mobile CSS contract checks
This commit is contained in:
@@ -263,6 +263,33 @@
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.chat-message-render-toggle {
|
||||
display: none;
|
||||
margin-left: auto;
|
||||
width: calc(var(--space-md) * 3);
|
||||
height: calc(var(--space-md) * 3);
|
||||
min-width: calc(var(--space-md) * 3);
|
||||
min-height: calc(var(--space-md) * 3);
|
||||
padding: 0;
|
||||
color: var(--text-muted);
|
||||
background: transparent;
|
||||
border-color: transparent;
|
||||
}
|
||||
|
||||
.chat-message-render-toggle:hover {
|
||||
color: var(--text);
|
||||
background: color-mix(in srgb, var(--surface) 55%, transparent);
|
||||
}
|
||||
|
||||
.chat-message-render-toggle:focus-visible {
|
||||
outline: none;
|
||||
box-shadow: var(--focus-ring-strong);
|
||||
}
|
||||
|
||||
.chat-message-render-toggle--plain {
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.chat-model-tag {
|
||||
font-size: 11px;
|
||||
padding: 1px 6px;
|
||||
@@ -790,12 +817,10 @@
|
||||
}
|
||||
|
||||
.chat-render-mode-toggle {
|
||||
width: 100%;
|
||||
margin-left: 0;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.chat-render-mode-btn {
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
.chat-message-render-toggle {
|
||||
display: inline-flex;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user