mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-10-02 13:39:41 +02:00
fix: Ralph panel toggle icon no longer changes erratically
The toggle icon was confusing because CSS rotation (90deg when expanded) combined with JS icon swapping caused left arrow → right arrow transitions. Changes: - Remove CSS rotation transform from .ralph-toggle - Use consistent down/up arrows matching Monitor panel convention - Collapsed: ▼ (down) - click to expand - Expanded: ▲ (up) - click to collapse Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -2168,10 +2168,10 @@ class ClaudemanApp {
|
||||
// Handle collapsed/expanded state
|
||||
if (this.innerStatePanelCollapsed) {
|
||||
panel.classList.add('collapsed');
|
||||
if (toggle) toggle.innerHTML = '◀'; // Left arrow when collapsed
|
||||
if (toggle) toggle.innerHTML = '▼'; // Down arrow when collapsed (click to expand)
|
||||
} else {
|
||||
panel.classList.remove('collapsed');
|
||||
if (toggle) toggle.innerHTML = '▲'; // Up arrow when expanded
|
||||
if (toggle) toggle.innerHTML = '▲'; // Up arrow when expanded (click to collapse)
|
||||
|
||||
// Update expanded view content
|
||||
this.updateRalphExpandedView(state);
|
||||
|
||||
@@ -95,7 +95,7 @@
|
||||
<span class="ralph-stat"><span class="ralph-stat-icon">⏱</span><span id="ralphStatTime">0m</span></span>
|
||||
<span class="ralph-stat"><span class="ralph-stat-icon">✓</span><span id="ralphStatTasks">0/0</span></span>
|
||||
</div>
|
||||
<span class="ralph-toggle" id="ralphToggle">◀</span>
|
||||
<span class="ralph-toggle" id="ralphToggle">▼</span>
|
||||
</div>
|
||||
<div class="ralph-controls">
|
||||
<button class="btn-icon-sm" onclick="event.stopPropagation(); app.toggleRalphDetach()" title="Detach/Attach panel" id="ralphDetachBtn">⧉</button>
|
||||
|
||||
@@ -592,14 +592,9 @@ body {
|
||||
.ralph-toggle {
|
||||
color: var(--text-dim);
|
||||
font-size: 0.6rem;
|
||||
transition: transform 0.2s;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.ralph-panel:not(.collapsed) .ralph-toggle {
|
||||
transform: rotate(90deg);
|
||||
}
|
||||
|
||||
/* Hide detail when collapsed */
|
||||
.ralph-panel.collapsed .ralph-detail {
|
||||
display: none;
|
||||
|
||||
Reference in New Issue
Block a user