Changesets · Branches · Tags · Compare
| Changeset | c038aa5b22bf7c24da516deff396bc7743877bb2c26825448ff76d81cef37a69 |
|---|---|
| Author | amar nath gupta <ang.amarnathgupta@gmail.com> · 2025-07-12 22:05 +05:30 |
| Committer | amar nath gupta <ang.amarnathgupta@gmail.com> · 2025-07-12 22:05 +05:30 |
| Parents | a8d6112f1f8c |
1 file changed
modified gui/src/components/History/index.tsx +9 −5
| @@ -114,7 +114,8 @@ | ||
| 114 | 114 | |
| 115 | 115 | return allSessionMetadata |
| 116 | 116 | .filter( |
| 117 | - (session) => searchTerm === "" || sessionIds.includes(session.sessionId), | |
| 117 | + (session) => | |
| 118 | + searchTerm === "" || sessionIds.includes(session.sessionId), | |
| 118 | 119 | ) |
| 119 | 120 | .sort( |
| 120 | 121 | (a, b) => |
| @@ -158,7 +159,7 @@ | ||
| 158 | 159 | {/* Collapse Button */} |
| 159 | 160 | <button |
| 160 | 161 | onClick={() => setCollapsed(!collapsed)} |
| 161 | - className="absolute left-2 top-1/2 -translate-y-1/2 transform bg-vsc-background text-vsc-foreground hover:bg-vsc-editor-background p-1 rounded-md" | |
| 162 | + className="bg-vsc-background text-vsc-foreground hover:bg-vsc-editor-background absolute left-2 top-1/2 -translate-y-1/2 transform rounded-md p-1" | |
| 162 | 163 | title={collapsed ? "Expand sidebar" : "Collapse sidebar"} |
| 163 | 164 | > |
| 164 | 165 | {collapsed ? ( |
| @@ -199,8 +200,9 @@ | ||
| 199 | 200 | "Loading Sessions..." |
| 200 | 201 | ) : ( |
| 201 | 202 | <> |
| 202 | - No past sessions found. To start a new session, either click the | |
| 203 | - "+" button or use the keyboard shortcut: <Shortcut>meta L</Shortcut> | |
| 203 | + No past sessions found. To start a new session, either click | |
| 204 | + the "+" button or use the keyboard shortcut:{" "} | |
| 205 | + <Shortcut>meta L</Shortcut> | |
| 204 | 206 | </> |
| 205 | 207 | )} |
| 206 | 208 | </div> |
| @@ -211,7 +213,9 @@ | ||
| 211 | 213 | {filteredAndSortedSessions.map((session, index) => { |
| 212 | 214 | const prevDate = |
| 213 | 215 | index > 0 |
| 214 | - ? parseDate(filteredAndSortedSessions[index - 1].dateCreated) | |
| 216 | + ? parseDate( | |
| 217 | + filteredAndSortedSessions[index - 1].dateCreated, | |
| 218 | + ) | |
| 215 | 219 | : earlier; |
| 216 | 220 | const date = parseDate(session.dateCreated); |
| 217 | 221 |