Spaces:
Sleeping
Sleeping
fix: Improve logo responsiveness with clamp() font sizing
Browse files
app.py
CHANGED
|
@@ -109,19 +109,52 @@ h1, h2, h3, h4, h5, h6 {
|
|
| 109 |
.action-bar {
|
| 110 |
margin-top: 16px !important;
|
| 111 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 112 |
"""
|
| 113 |
|
| 114 |
def create_header():
|
| 115 |
"""Create a clean, minimal header."""
|
| 116 |
return gr.Markdown("""
|
| 117 |
-
<div
|
| 118 |
-
<div
|
| 119 |
-
<div>
|
| 120 |
-
<h1
|
| 121 |
-
<p
|
| 122 |
</div>
|
| 123 |
<div style="flex-grow: 1;"></div>
|
| 124 |
-
<div
|
| 125 |
v2.1 Onyx
|
| 126 |
</div>
|
| 127 |
</div>
|
|
|
|
| 109 |
.action-bar {
|
| 110 |
margin-top: 16px !important;
|
| 111 |
}
|
| 112 |
+
|
| 113 |
+
/* Header Responsiveness */
|
| 114 |
+
.header-container {
|
| 115 |
+
display: flex;
|
| 116 |
+
align-items: center;
|
| 117 |
+
gap: 12px;
|
| 118 |
+
margin-bottom: 24px;
|
| 119 |
+
}
|
| 120 |
+
|
| 121 |
+
.logo-icon {
|
| 122 |
+
font-size: clamp(20px, 4vw, 28px);
|
| 123 |
+
}
|
| 124 |
+
|
| 125 |
+
.logo-text h1 {
|
| 126 |
+
margin: 0;
|
| 127 |
+
font-size: clamp(18px, 3vw, 24px);
|
| 128 |
+
color: #f4f4f5;
|
| 129 |
+
}
|
| 130 |
+
|
| 131 |
+
.logo-text p {
|
| 132 |
+
margin: 0;
|
| 133 |
+
font-size: clamp(12px, 2vw, 14px);
|
| 134 |
+
color: #a1a1aa;
|
| 135 |
+
}
|
| 136 |
+
|
| 137 |
+
.version-badge {
|
| 138 |
+
font-size: 12px;
|
| 139 |
+
color: #52525b;
|
| 140 |
+
border: 1px solid #27272a;
|
| 141 |
+
padding: 4px 8px;
|
| 142 |
+
border-radius: 4px;
|
| 143 |
+
white-space: nowrap;
|
| 144 |
+
}
|
| 145 |
"""
|
| 146 |
|
| 147 |
def create_header():
|
| 148 |
"""Create a clean, minimal header."""
|
| 149 |
return gr.Markdown("""
|
| 150 |
+
<div class="header-container">
|
| 151 |
+
<div class="logo-icon">🧞</div>
|
| 152 |
+
<div class="logo-text">
|
| 153 |
+
<h1>DebugGenie</h1>
|
| 154 |
+
<p>Enterprise Error Analysis</p>
|
| 155 |
</div>
|
| 156 |
<div style="flex-grow: 1;"></div>
|
| 157 |
+
<div class="version-badge">
|
| 158 |
v2.1 Onyx
|
| 159 |
</div>
|
| 160 |
</div>
|