AshkanTaghipour commited on
Commit
e4a93cc
·
verified ·
1 Parent(s): 9ef6d45

Upload index.html with huggingface_hub

Browse files
Files changed (1) hide show
  1. index.html +19 -23
index.html CHANGED
@@ -88,45 +88,41 @@ select:hover,select:focus{border-color:var(--accent)}
88
  #splash-content p{font-size:0.9rem;margin-bottom:24px}
89
  #splash-content .cta{font-size:0.78rem;padding:8px 22px}
90
 
91
- /* App: vertical scrollable layout */
92
- #app{flex-direction:column;height:auto;min-height:100vh;overflow:visible}
93
 
94
- /* Sidebar → top panel */
95
- #sidebar{width:100%;min-width:unset;flex-direction:column;gap:10px;padding:14px 16px;
96
  border-right:none;border-bottom:1px solid var(--border);flex-shrink:0}
97
- #sidebar h1{font-size:1.1rem}
98
  #sidebar p.sub{display:none}
99
  .control-group{flex-direction:row;align-items:center;gap:8px}
100
  .control-group label{min-width:fit-content;margin:0;white-space:nowrap}
101
- select{flex:1;min-width:0;font-size:0.78rem;padding:8px 30px 8px 8px}
102
-
103
- /* Info card: horizontal legend */
104
- .info-card{padding:10px}
105
- .legend{flex-direction:row;flex-wrap:wrap;gap:6px}
106
- .legend-item{font-size:0.6rem}
107
 
 
 
108
  .credits{display:none}
109
 
110
- /* Main: no flex grow, fixed heights */
111
- #main{flex:none;width:100%}
112
- #viewer-container{height:50vh;min-height:260px;flex:none}
113
  #viewer-label{font-size:0.6rem;top:6px;left:8px;padding:2px 8px}
114
 
115
- /* Fields panel: side by side but shorter */
116
- #fields-panel{height:180px;min-height:180px;flex-shrink:0}
117
- .field-title{font-size:0.72rem;margin-bottom:4px}
118
- .field-canvas-wrap canvas{max-height:130px}
119
  }
120
 
121
  /* Small phones */
122
  @media(max-width:480px){
123
  #splash-content h1{font-size:1.6rem}
124
  #splash-content p{font-size:0.8rem}
125
- #sidebar{padding:10px 12px;gap:8px}
126
- .control-group{flex-direction:column;gap:4px}
127
- #viewer-container{height:45vh;min-height:220px}
128
- #fields-panel{height:160px;min-height:160px}
129
- .field-canvas-wrap canvas{max-height:110px}
130
  }
131
  </style>
132
  </head>
 
88
  #splash-content p{font-size:0.9rem;margin-bottom:24px}
89
  #splash-content .cta{font-size:0.78rem;padding:8px 22px}
90
 
91
+ /* App: vertical layout, calc-based so everything fits in viewport */
92
+ #app{flex-direction:column;height:100vh;overflow:hidden}
93
 
94
+ /* Sidebar → compact top panel */
95
+ #sidebar{width:100%;min-width:unset;flex-direction:column;gap:8px;padding:10px 14px;
96
  border-right:none;border-bottom:1px solid var(--border);flex-shrink:0}
97
+ #sidebar h1{font-size:1rem}
98
  #sidebar p.sub{display:none}
99
  .control-group{flex-direction:row;align-items:center;gap:8px}
100
  .control-group label{min-width:fit-content;margin:0;white-space:nowrap}
101
+ select{flex:1;min-width:0;font-size:0.78rem;padding:7px 30px 7px 8px}
 
 
 
 
 
102
 
103
+ /* Hide info card on mobile to save space */
104
+ .info-card{display:none}
105
  .credits{display:none}
106
 
107
+ /* 3D viewer takes remaining space minus fields */
108
+ #main{flex:1;min-height:0;display:flex;flex-direction:column}
109
+ #viewer-container{flex:1;min-height:0}
110
  #viewer-label{font-size:0.6rem;top:6px;left:8px;padding:2px 8px}
111
 
112
+ /* Fields panel: fixed height, side by side */
113
+ #fields-panel{height:200px;min-height:200px;max-height:200px;flex-shrink:0}
114
+ .field-title{font-size:0.7rem;margin-bottom:3px}
115
+ .field-canvas-wrap canvas{max-height:150px}
116
  }
117
 
118
  /* Small phones */
119
  @media(max-width:480px){
120
  #splash-content h1{font-size:1.6rem}
121
  #splash-content p{font-size:0.8rem}
122
+ #sidebar{padding:8px 10px;gap:6px}
123
+ .control-group{flex-direction:column;gap:3px}
124
+ #fields-panel{height:170px;min-height:170px;max-height:170px}
125
+ .field-canvas-wrap canvas{max-height:125px}
 
126
  }
127
  </style>
128
  </head>