Refine Notes list header: scale buttons, replace Refresh with icon, align button group
This commit is contained in:
+21
-25
@@ -54,15 +54,18 @@
|
|||||||
<!-- Notes List Container -->
|
<!-- Notes List Container -->
|
||||||
<div id="notesListContainer" class="hidden flex flex-col bg-purple-100 rounded-2xl shadow-2xl border border-purple-200 max-w-5xl w-full p-6 gap-4 flex-1 overflow-hidden mt-2.5 mb-3">
|
<div id="notesListContainer" class="hidden flex flex-col bg-purple-100 rounded-2xl shadow-2xl border border-purple-200 max-w-5xl w-full p-6 gap-4 flex-1 overflow-hidden mt-2.5 mb-3">
|
||||||
<div class="flex-shrink-0">
|
<div class="flex-shrink-0">
|
||||||
<div class="flex items-center justify-between gap-3">
|
<div class="flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3">
|
||||||
<div>
|
<div>
|
||||||
<h2 class="text-2xl font-bold text-gray-800">Notes</h2>
|
<h2 class="text-lg sm:text-2xl font-bold text-gray-800">Notes</h2>
|
||||||
<p class="text-sm text-gray-600">Browse all notes and open details.</p>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="flex gap-2">
|
<div class="flex gap-2 flex-wrap">
|
||||||
<button id="refreshNotesBtn" class="px-3 py-2 rounded border border-gray-200 text-gray-700 hover:bg-gray-100">Refresh</button>
|
<button id="refreshNotesBtn" class="h-6 px-1.5 py-0 rounded hover:bg-gray-200 text-gray-700 transition flex items-center justify-center" title="Refresh notes">
|
||||||
<button id="newNoteBtn" class="px-4 py-2 rounded bg-secondary text-white font-semibold">New Note</button>
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" class="w-5 h-5">
|
||||||
<button id="conversationsBtn" class="px-4 py-2 rounded bg-secondary text-white font-semibold">Conversations</button>
|
<path d="M21.5 2v6h-6M2.5 22v-6h6M2 11.5a10 10 0 0 1 18.8-4.3M22 12.5a10 10 0 0 1-18.8 4.2"/>
|
||||||
|
</svg>
|
||||||
|
</button>
|
||||||
|
<button id="newNoteBtn" class="h-6 px-2 sm:px-3 py-0 text-xs leading-none rounded bg-secondary text-white font-semibold flex items-center justify-center">New Note</button>
|
||||||
|
<button id="conversationsBtn" class="h-6 px-2 sm:px-3 py-0 text-xs leading-none rounded bg-secondary text-white font-semibold flex items-center justify-center">Conversations</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="w-full mt-3">
|
<div class="w-full mt-3">
|
||||||
@@ -120,12 +123,9 @@
|
|||||||
|
|
||||||
<!-- Note + Audio Container -->
|
<!-- Note + Audio Container -->
|
||||||
<div id="noteContainer" class="hidden self-center bg-white rounded-2xl shadow-2xl max-w-xl w-full p-8 space-y-6">
|
<div id="noteContainer" class="hidden self-center bg-white rounded-2xl shadow-2xl max-w-xl w-full p-8 space-y-6">
|
||||||
<div class="flex items-center justify-between gap-3">
|
<div class="flex items-center gap-2 flex-wrap">
|
||||||
<div class="flex items-center gap-2">
|
<button id="backToListBtn" class="px-2 sm:px-3 py-1 sm:py-2 text-xs sm:text-sm rounded border border-gray-200 text-gray-700 hover:bg-gray-100">Back to Notes</button>
|
||||||
<button id="backToListBtn" class="px-3 py-2 rounded border border-gray-200 text-gray-700 hover:bg-gray-100">Back to Notes</button>
|
<h2 class="text-lg sm:text-2xl font-bold text-gray-800">New Note</h2>
|
||||||
<h2 class="text-2xl font-bold text-gray-800">New Note</h2>
|
|
||||||
</div>
|
|
||||||
<span id="graphStatus" class="text-xs px-2 py-1 rounded bg-gray-100 text-gray-600">Graph: checking…</span>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="space-y-4">
|
<div class="space-y-4">
|
||||||
<div>
|
<div>
|
||||||
@@ -228,14 +228,13 @@
|
|||||||
<!-- Conversations List Container -->
|
<!-- Conversations List Container -->
|
||||||
<div id="conversationsContainer" class="hidden flex flex-col bg-purple-100 rounded-2xl shadow-2xl border border-purple-200 max-w-5xl w-full p-6 gap-4 flex-1 overflow-hidden mt-2.5 mb-3">
|
<div id="conversationsContainer" class="hidden flex flex-col bg-purple-100 rounded-2xl shadow-2xl border border-purple-200 max-w-5xl w-full p-6 gap-4 flex-1 overflow-hidden mt-2.5 mb-3">
|
||||||
<div class="flex-shrink-0">
|
<div class="flex-shrink-0">
|
||||||
<div class="flex items-center justify-between gap-3">
|
<div class="flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3">
|
||||||
<div>
|
<div>
|
||||||
<h2 class="text-2xl font-bold text-gray-800">Conversations</h2>
|
<h2 class="text-lg sm:text-2xl font-bold text-gray-800">Conversations</h2>
|
||||||
<p class="text-sm text-gray-600">Browse all conversations.</p>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="flex gap-2">
|
<div class="flex gap-2 flex-wrap">
|
||||||
<button id="backToListFromConversationsBtn" class="px-3 py-2 rounded border border-gray-200 text-gray-700 hover:bg-gray-100">Back to Notes</button>
|
<button id="backToListFromConversationsBtn" class="px-2 sm:px-3 py-1 sm:py-2 text-xs sm:text-sm rounded border border-gray-200 text-gray-700 hover:bg-gray-100">Back to Notes</button>
|
||||||
<button id="newConversationBtn" class="px-4 py-2 rounded bg-secondary text-white font-semibold">New Conversation</button>
|
<button id="newConversationBtn" class="px-3 sm:px-4 py-1 sm:py-2 text-xs sm:text-sm rounded bg-secondary text-white font-semibold">New Conversation</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -248,12 +247,9 @@
|
|||||||
|
|
||||||
<!-- Conversation Form Container -->
|
<!-- Conversation Form Container -->
|
||||||
<div id="conversationContainer" class="hidden self-center bg-white rounded-2xl shadow-2xl max-w-xl w-full p-8 space-y-6">
|
<div id="conversationContainer" class="hidden self-center bg-white rounded-2xl shadow-2xl max-w-xl w-full p-8 space-y-6">
|
||||||
<div class="flex items-center justify-between gap-3">
|
<div class="flex items-center gap-2 flex-wrap">
|
||||||
<div class="flex items-center gap-2">
|
<button id="backToConversationsListBtn" class="px-2 sm:px-3 py-1 sm:py-2 text-xs sm:text-sm rounded border border-gray-200 text-gray-700 hover:bg-gray-100">Back to Conversations</button>
|
||||||
<button id="backToConversationsListBtn" class="px-3 py-2 rounded border border-gray-200 text-gray-700 hover:bg-gray-100">Back to Conversations</button>
|
<h2 class="text-lg sm:text-2xl font-bold text-gray-800">New Conversation</h2>
|
||||||
<h2 class="text-2xl font-bold text-gray-800">New Conversation</h2>
|
|
||||||
</div>
|
|
||||||
<span id="conversationGraphStatus" class="text-xs px-2 py-1 rounded bg-gray-100 text-gray-600">Graph: checking…</span>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="space-y-4">
|
<div class="space-y-4">
|
||||||
|
|||||||
@@ -3,6 +3,23 @@ PRISM NOTES - SESSION LOG
|
|||||||
Project history, decisions, and architectural milestones
|
Project history, decisions, and architectural milestones
|
||||||
================================================================================
|
================================================================================
|
||||||
|
|
||||||
|
[2026-01-10 20:45] MONICA SESSION: UI Refinements & Polish
|
||||||
|
- Changes Applied:
|
||||||
|
* Centered all main containers (body: flex items-center justify-center)
|
||||||
|
* Reduced card spacing dramatically for compact dense layout
|
||||||
|
- Grid gap: gap-5 → gap-2 (between cards)
|
||||||
|
- Card padding: p-5 sm:p-6 → px-2 py-0.5 (internal spacing)
|
||||||
|
- Internal spacing: space-y-3 → space-y-0 (elements in cards)
|
||||||
|
* Improved attachment indicator icons with outline strokes instead of fills
|
||||||
|
- Image: mountain/landscape icon (clearer than grid pattern)
|
||||||
|
- Video: play button with frame (recognizable)
|
||||||
|
- Audio: speaker icon (listening/playback, not microphone which is for recording)
|
||||||
|
- File: document with corner fold (standard file representation)
|
||||||
|
* Fixed mobile view icon visibility by increasing size to 24px and adding flex-shrink-0
|
||||||
|
* Replaced purple badges with subtle hover-on-gray style for icons
|
||||||
|
- Result: Cleaner, more compact UI with better visual hierarchy
|
||||||
|
- Status: Fixed and committed (a168fe2)
|
||||||
|
|
||||||
[2026-01-10 20:10] MONICA SESSION: Fixed Container Injection Bug
|
[2026-01-10 20:10] MONICA SESSION: Fixed Container Injection Bug
|
||||||
- Issue: Refactor commit (cee9157) had CONTAINERS + initializeContainers() code
|
- Issue: Refactor commit (cee9157) had CONTAINERS + initializeContainers() code
|
||||||
but ALSO kept all old HTML in DOM, creating duplicates and preventing injection
|
but ALSO kept all old HTML in DOM, creating duplicates and preventing injection
|
||||||
|
|||||||
Reference in New Issue
Block a user