Skip to content

Commit 509f6fa

Browse files
committed
modified: css/styles.css
modified: index.html
1 parent dde4f91 commit 509f6fa

File tree

2 files changed

+49
-13
lines changed

2 files changed

+49
-13
lines changed

css/styles.css

Lines changed: 43 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ input[type=range].vibe::-webkit-slider-thumb:hover {
309309
textarea.draft {
310310
width: 100%; min-height: 42vh; resize: none; border: none; outline: none;
311311
background: var(--bg); color: var(--text-1);
312-
font-family: inherit; font-size: 17px; line-height: 1.8; font-weight: 450;
312+
font-family: inherit; font-size: 14px; line-height: 1.8; font-weight: 450;
313313
padding: 20px 24px; overflow-y: auto;
314314
/* fill parent flex container */
315315
flex: 1;
@@ -356,7 +356,7 @@ textarea.draft::placeholder { color: var(--text-3); line-height: 1.9; font-weigh
356356
.heatmap-layer {
357357
display: none;
358358
width: 100%; min-height: 42vh;
359-
padding: 20px 24px; font-family: inherit; font-size: 17px; line-height: 1.8;
359+
padding: 20px 24px; font-family: inherit; font-size: 14px; line-height: 1.8;
360360
color: var(--text-1); white-space: pre-wrap; word-wrap: break-word;
361361
background: var(--bg);
362362
}
@@ -439,7 +439,7 @@ textarea.draft::placeholder { color: var(--text-3); line-height: 1.9; font-weigh
439439
}
440440
.var-card-name { font-size: 14px; font-weight: 800; margin-bottom: 3px; }
441441
.var-card-tag { font-size: 11px; color: var(--text-2); }
442-
.var-text { font-size: 17px; line-height: 1.85; white-space: pre-wrap; word-break: break-word; font-weight: 420; }
442+
.var-text { font-size: 14px; line-height: 1.85; white-space: pre-wrap; word-break: break-word; font-weight: 420; }
443443

444444
/* ── Empty State ─────────────────────────────────────────── */
445445
.empty {
@@ -491,13 +491,32 @@ body.dark .loading-mask { background: rgba(12,14,20,0.85); }
491491
border-left: 1px solid var(--border);
492492
}
493493

494-
/* Collapsed: zero width, invisible */
494+
/* Collapsed: narrow 32px strip — button stays visible for re-expanding */
495495
.pane-coaching.collapsed {
496-
width: 0 !important;
497-
border-left: none;
496+
width: 32px !important;
497+
border-left: 1px solid var(--border);
498+
}
499+
500+
/* When collapsed, hide everything except the toggle button */
501+
.pane-coaching.collapsed .pane-title,
502+
.pane-coaching.collapsed #scorePreview,
503+
.pane-coaching.collapsed .why-body {
504+
display: none !important;
505+
}
506+
.pane-coaching.collapsed .pane-head {
507+
flex-direction: column;
508+
justify-content: flex-start;
509+
align-items: center;
510+
padding: 10px 0;
511+
border-bottom: none;
512+
height: 100%;
513+
}
514+
.pane-coaching.collapsed .pane-actions {
515+
width: 100%;
516+
justify-content: center;
498517
}
499518

500-
/* Collapse toggle button arrow direction */
519+
/* Collapse/expand toggle button */
501520
.coach-collapse-btn { font-size: 11px; }
502521

503522
/* Why-panel body — always visible (no open/close toggle needed) */
@@ -723,6 +742,20 @@ select.form-sel option { background: var(--surface); color: var(--text-1); }
723742
.pane-coaching.collapsed {
724743
width: 100% !important;
725744
height: 44px !important; /* show header only */
745+
border-left: none;
746+
}
747+
/* On mobile, restore all header children when collapsed (height-based, not width-based) */
748+
.pane-coaching.collapsed .pane-title,
749+
.pane-coaching.collapsed #scorePreview {
750+
display: flex !important;
751+
}
752+
.pane-coaching.collapsed .pane-head {
753+
flex-direction: row;
754+
justify-content: space-between;
755+
align-items: center;
756+
padding: 10px 14px;
757+
height: auto;
758+
border-bottom: 1px solid var(--border);
726759
}
727760

728761
/* Show expand icon pointing down on mobile (panel stacks below) */
@@ -784,8 +817,8 @@ select.form-sel option { background: var(--surface); color: var(--text-1); }
784817

785818
/* Input pane: min-height reduced for phone */
786819
.pane-input { min-height: 200px; }
787-
textarea.draft { font-size: 15px; min-height: 160px; }
788-
.heatmap-layer { font-size: 15px; min-height: 160px; }
820+
textarea.draft { font-size: 13px; min-height: 160px; }
821+
.heatmap-layer { font-size: 13px; min-height: 160px; }
789822

790823
/* Pane head: tighter */
791824
.pane-head { padding: 8px 12px; }
@@ -814,7 +847,7 @@ select.form-sel option { background: var(--surface); color: var(--text-1); }
814847
.var-tab { font-size: 9px; white-space: nowrap; }
815848

816849
/* Output text: slightly smaller */
817-
.var-text { font-size: 15px; }
850+
.var-text { font-size: 13px; }
818851

819852
/* Score cards: smaller */
820853
.score-card { min-width: 76px; padding: 8px 10px; }

index.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<head>
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<meta name="google-site-verification" content="ngS8wu36B4P3ZyQBK7Q8rlwMd53-rFN55y8IFsFVApw" />
67
<title>ClearVoice — AI Communication Coach</title>
78
<meta name="description" content="AI-powered writing coach with tone heatmap, 3-variation rewrites, and coaching insights. Powered by Claude or GPT-4.">
89
<link rel="preconnect" href="https://fonts.googleapis.com">
@@ -430,10 +431,12 @@ <h3>Ready to Elevate Your Writing</h3>
430431
function toggleCoachPanel() {
431432
const panel = document.getElementById('whyPanel');
432433
const btn = document.getElementById('coachCollapseBtn');
433-
const divider = document.getElementById('outputDivider');
434434
const collapsed = panel.classList.toggle('collapsed');
435-
if (btn) { btn.textContent = collapsed ? '▶' : '◀'; btn.title = collapsed ? 'Expand coaching panel' : 'Collapse coaching panel'; }
436-
if (divider) divider.style.display = collapsed ? 'none' : '';
435+
if (btn) {
436+
btn.textContent = collapsed ? '▶' : '◀';
437+
btn.title = collapsed ? 'Expand coaching panel' : 'Collapse coaching panel';
438+
}
439+
// Keep divider visible so user can see the boundary of the collapsed strip
437440
}
438441
</script>
439442

0 commit comments

Comments
 (0)