200200 padding : 14px ;
201201 border-radius : 6px ;
202202 border : 1px solid rgba (71 , 85 , 105 , 0.5 );
203+ display : flex;
204+ flex-direction : column;
205+ min-height : 120px ;
203206 }
204207
205208 .detection-label {
206209 color : rgb (148 , 163 , 184 );
207210 font-size : 11px ;
208211 text-transform : uppercase;
209212 letter-spacing : 0.5px ;
210- margin-bottom : 6px ;
213+ margin-bottom : 0 ;
214+ flex-shrink : 0 ;
215+ text-align : left;
211216 }
212217
213218 .detection-value {
214219 color : rgb (226 , 232 , 240 );
215- font-size : 20 px ;
220+ font-size : 24 px ;
216221 font-weight : 700 ;
217222 font-family : 'JetBrains Mono' , monospace;
223+ flex-grow : 1 ;
224+ display : flex;
225+ align-items : center;
226+ justify-content : flex-start;
218227 }
219228
220229 .detection-sub {
@@ -743,11 +752,11 @@ <h1>☁️ Simple<span class="highlight">Cloud</span>Detect</h1>
743752
744753 < div class ="status-grid ">
745754 <!-- Current Detection - Prominent -->
746- < div style ="display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 16px; ">
755+ < div style ="display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 16px; grid-auto-rows: auto; ">
747756 <!-- Latest Detection Image -->
748- < div class ="status-card ">
757+ < div class ="status-card " style =" display: flex; flex-direction: column; " >
749758 < div class ="status-card-title "> 📷 Latest Image</ div >
750- < div style ="display: flex; justify-content: center; align-items: center; padding: 8px; min-height: 250px ; ">
759+ < div style ="display: flex; justify-content: center; align-items: center; flex: 1 ; ">
751760 < img id ="latest-image " src ="/api/v1/latest_image?t={{ last_update }} "
752761 alt ="Latest Detection "
753762 style ="width: 100%; height: 100%; object-fit: contain; border-radius: 6px; border: 1px solid rgba(71, 85, 105, 0.5); "
@@ -758,7 +767,7 @@ <h1>☁️ Simple<span class="highlight">Cloud</span>Detect</h1>
758767 </ div >
759768 </ div >
760769
761- <!-- Current Detection - Prominent -->
770+ <!-- Current Detection Status -->
762771 < div class ="status-card status-card-large ">
763772 < div class ="detection-grid " style ="margin-top: 0; height: 100%; ">
764773 < div class ="detection-item ">
@@ -782,11 +791,19 @@ <h1>☁️ Simple<span class="highlight">Cloud</span>Detect</h1>
782791 </ div >
783792 < div class ="detection-item ">
784793 < div class ="detection-label "> Last Updated</ div >
785- < div class ="detection-value " style ="font-size: 14px; "> {{ last_update }}</ div >
794+ < div class ="detection-value " style ="font-size: 16px; "> {{ last_update }}</ div >
795+ < div class ="detection-sub " style ="margin-top: 6px; ">
796+ {% if pending_status.is_pending %}
797+ < span style ="color: rgb(251, 191, 36); font-weight: 600; "> ⏳ {{ pending_status.target_state }}</ span >
798+ < span style ="color: rgb(251, 191, 36); "> in {{ pending_status.remaining_seconds }}s</ span >
799+ {% else %}
800+ < span style ="color: rgb(100, 116, 139); "> No pending changes</ span >
801+ {% endif %}
802+ </ div >
786803 </ div >
787804 < div class ="detection-item ">
788805 < div class ="detection-label "> Container Uptime</ div >
789- < div class ="detection-value " style ="font-size: 14px ; "> {{ container_uptime }}</ div >
806+ < div class ="detection-value " style ="font-size: 16px ; "> {{ container_uptime }}</ div >
790807 </ div >
791808 </ div >
792809 </ div >
0 commit comments