File: //proc/self/root/opt/trading-bot/fix_tab_css.sh
#!/bin/bash
# Ensure CSS properly hides/shows tabs
cd /opt/trading-bot/static
# Check current CSS
echo "Current .tab-content CSS:"
grep -A 5 "\.tab-content {" index.html
echo ""
echo "Current .tab-content.active CSS:"
grep -A 3 "\.tab-content\.active {" index.html
# Make sure the CSS is correct
# .tab-content should have display: none
# .tab-content.active should have display: block
# Replace the CSS if needed
sed -i 's/\.tab-content {/\.tab-content {\n display: none;/g' index.html
sed -i 's/\.tab-content\.active {/\.tab-content\.active {\n display: block !important;/g' index.html
echo ""
echo "Updated CSS:"
grep -A 3 "\.tab-content {" index.html
grep -A 3 "\.tab-content\.active {" index.html
# Also verify the overview tab is marked as active
echo ""
echo "Overview tab class:"
grep 'id="overview"' index.html