hemsby commited on
Commit
6a450e6
·
1 Parent(s): 2e369aa

fix: move PNG button to bottom-left tabs — no longer hidden by profile panel

Browse files
Files changed (1) hide show
  1. build_network.py +4 -6
build_network.py CHANGED
@@ -308,8 +308,6 @@ body {{ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans
308
  .status-bar {{ position: absolute; top: 12px; right: 16px; z-index: 10; display: flex; gap: 8px; align-items: center; }}
309
  .stat {{ font-size: 12px; color: #aaa; background: rgba(255,255,255,0.9); padding: 4px 10px; border-radius: 4px; border: 1px solid #eee; }}
310
  .stat strong {{ color: #555; }}
311
- .screenshot-btn {{ background: rgba(255,255,255,0.9); border: 1px solid #eee; border-radius: 4px; padding: 4px 8px; cursor: pointer; font-size: 12px; color: #aaa; transition: all 0.15s; display: flex; align-items: center; gap: 4px; }}
312
- .screenshot-btn:hover {{ background: #fff; color: #555; border-color: #ccc; }}
313
 
314
  .tabs {{ position: absolute; bottom: 16px; left: 24px; z-index: 10; display: flex; gap: 4px; }}
315
  .tab-btn {{ padding: 6px 14px; font-size: 12px; font-weight: 500; border: 1px solid #ddd; background: #fff; border-radius: 6px; cursor: pointer; color: #555; transition: all 0.15s; }}
@@ -626,10 +624,6 @@ document.addEventListener('DOMContentLoaded', function() {{
626
  <div class="status-bar">
627
  <span class="stat">Attributes: <strong id="nodeCount">0</strong></span>
628
  <span class="stat">Connections: <strong id="edgeCount">0</strong></span>
629
- <button class="screenshot-btn" onclick="saveScreenshot()" title="Save as PNG">
630
- <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"/><circle cx="12" cy="13" r="4"/></svg>
631
- PNG
632
- </button>
633
  </div>
634
  <div id="mynetwork"></div>
635
  <div class="profile-panel" id="profilePanel">
@@ -647,6 +641,10 @@ document.addEventListener('DOMContentLoaded', function() {{
647
  <div class="profile-bars" id="profileBars"></div>
648
  </div>
649
  <div class="tabs">
 
 
 
 
650
  <button class="tab-btn" id="detailsBtn" onclick="toggleDetails()">Details</button>
651
  </div>
652
  <div class="details-panel" id="detailsPanel">
 
308
  .status-bar {{ position: absolute; top: 12px; right: 16px; z-index: 10; display: flex; gap: 8px; align-items: center; }}
309
  .stat {{ font-size: 12px; color: #aaa; background: rgba(255,255,255,0.9); padding: 4px 10px; border-radius: 4px; border: 1px solid #eee; }}
310
  .stat strong {{ color: #555; }}
 
 
311
 
312
  .tabs {{ position: absolute; bottom: 16px; left: 24px; z-index: 10; display: flex; gap: 4px; }}
313
  .tab-btn {{ padding: 6px 14px; font-size: 12px; font-weight: 500; border: 1px solid #ddd; background: #fff; border-radius: 6px; cursor: pointer; color: #555; transition: all 0.15s; }}
 
624
  <div class="status-bar">
625
  <span class="stat">Attributes: <strong id="nodeCount">0</strong></span>
626
  <span class="stat">Connections: <strong id="edgeCount">0</strong></span>
 
 
 
 
627
  </div>
628
  <div id="mynetwork"></div>
629
  <div class="profile-panel" id="profilePanel">
 
641
  <div class="profile-bars" id="profileBars"></div>
642
  </div>
643
  <div class="tabs">
644
+ <button class="tab-btn" onclick="saveScreenshot()" title="Save as PNG">
645
+ <svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="vertical-align:-1px"><path d="M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"/><circle cx="12" cy="13" r="4"/></svg>
646
+ Save PNG
647
+ </button>
648
  <button class="tab-btn" id="detailsBtn" onclick="toggleDetails()">Details</button>
649
  </div>
650
  <div class="details-panel" id="detailsPanel">