fix: Settings popup close on mobile, remove reset scale button
This commit is contained in:
13
index.html
13
index.html
@ -114,16 +114,9 @@
|
||||
<span class="material-symbols-outlined text-sm">fit_screen</span>
|
||||
</button>
|
||||
|
||||
<!-- Settings Popup -->
|
||||
<div class="hidden absolute bottom-10 right-0 bg-[#1a2333] border border-[#2d3a4f] rounded-lg py-2 z-50 w-64 shadow-xl text-sm" id="settingsPopup">
|
||||
<!-- Reset Scale -->
|
||||
<div class="px-4 py-2 hover:bg-[#252f3f] cursor-pointer flex items-center gap-3" onclick="window.dashboard.chart.timeScale().fitContent()">
|
||||
<span class="material-symbols-outlined text-sm">refresh</span> Reset price scale
|
||||
</div>
|
||||
|
||||
<hr class="border-[#2d3a4f] my-1">
|
||||
|
||||
<!-- Scale Toggles -->
|
||||
<!-- Settings Popup -->
|
||||
<div class="hidden absolute bottom-10 right-0 bg-[#1a2333] border border-[#2d3a4f] rounded-lg py-2 z-50 w-64 shadow-xl text-sm" id="settingsPopup">
|
||||
<!-- Scale Toggles -->
|
||||
<div class="px-4 py-2 hover:bg-[#252f3f] cursor-pointer" onclick="window.toggleScaleOption('autoScale')">
|
||||
<span id="autoScaleCheck">✓</span> Auto (fits data to screen)
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user