Skip to content

Commit 6fe7a85

Browse files
author
michaelsboost
committed
minor ui fixes
1 parent 5083ff7 commit 6fe7a85

File tree

5 files changed

+13
-11
lines changed

5 files changed

+13
-11
lines changed

.DS_Store

-2 KB
Binary file not shown.

dist/bundle.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,16 +141,17 @@ <h2 class="font-bold text-lg">📋 Trade History</h2>
141141
</div>
142142
</div>
143143
</div>
144-
145-
<div class="overflow-x-auto">
144+
145+
<!-- Set max height and make it scrollable -->
146+
<div class="overflow-x-auto max-h-96 overflow-y-auto">
146147
<table id="history" class="w-full text-sm">
147-
<thead>
148+
<thead class="sticky inset-x-0 top-0">
148149
<tr class="text-left border-b border-slate-700">
149150
<th class="pb-2 text-slate-400">Time</th>
150151
<th class="pb-2 text-slate-400">Type</th>
151152
<th class="pb-2 text-slate-400">Entry</th>
152153
<th class="pb-2 text-slate-400">Exit</th>
153-
<th class="pb-2 text-slate-400">P&amp;L</th>
154+
<th class="pb-2 text-slate-400">P&L</th>
154155
<th class="pb-2 text-slate-400">Duration</th>
155156
<th class="pb-2 text-slate-400">Result</th>
156157
</tr>

src/source.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ <h2 class="font-bold text-lg my-auto">Price Chart</h2>
105105
</div>
106106
</div>
107107

108-
<!-- Trade History -->
108+
<!-- Trade History -->
109109
<div class="trading-card rounded-xl p-5 mt-6">
110110
<div class="flex justify-between items-center mb-4">
111111
<h2 class="font-bold text-lg">📋 Trade History</h2>
@@ -120,10 +120,11 @@ <h2 class="font-bold text-lg">📋 Trade History</h2>
120120
</div>
121121
</div>
122122
</div>
123-
124-
<div class="overflow-x-auto">
123+
124+
<!-- Set max height and make it scrollable -->
125+
<div class="overflow-x-auto max-h-96 overflow-y-auto">
125126
<table id="history" class="w-full text-sm">
126-
<thead>
127+
<thead class="sticky inset-x-0 top-0">
127128
<tr class="text-left border-b border-slate-700">
128129
<th class="pb-2 text-slate-400">Time</th>
129130
<th class="pb-2 text-slate-400">Type</th>

0 commit comments

Comments
 (0)