Spaces:
Running
Running
Sync from GitHub via hub-sync
Browse files
app.py
CHANGED
|
@@ -334,12 +334,9 @@ details { margin-top: 8px; }
|
|
| 334 |
details summary { cursor: pointer; color: #4b5563; font-weight: 500; }
|
| 335 |
|
| 336 |
/* ββ Theme toggle βββββββββββββββββββββββββββββββββββββββββββββββββββ */
|
| 337 |
-
.theme-toggle-row {
|
| 338 |
-
justify-content: flex-end !important;
|
| 339 |
-
margin-top: -40px !important;
|
| 340 |
-
margin-bottom: 8px !important;
|
| 341 |
-
}
|
| 342 |
#theme-toggle-btn {
|
|
|
|
|
|
|
| 343 |
background: transparent !important;
|
| 344 |
border: 1px solid #d1d5db !important;
|
| 345 |
border-radius: 8px !important;
|
|
@@ -399,17 +396,16 @@ JS_TOGGLE_THEME = """
|
|
| 399 |
with gr.Blocks(css=CSS, title="OpenCodeReview", theme=gr.themes.Soft()) as demo:
|
| 400 |
demo.load(js=JS_RESTORE_THEME)
|
| 401 |
|
| 402 |
-
gr.
|
| 403 |
-
|
| 404 |
-
|
| 405 |
-
|
| 406 |
-
|
| 407 |
-
|
| 408 |
-
|
| 409 |
-
|
| 410 |
-
|
| 411 |
-
|
| 412 |
-
theme_toggle.click(js=JS_TOGGLE_THEME)
|
| 413 |
|
| 414 |
# ββ State ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 415 |
pr_state = gr.State()
|
|
|
|
| 334 |
details summary { cursor: pointer; color: #4b5563; font-weight: 500; }
|
| 335 |
|
| 336 |
/* ββ Theme toggle βββββββββββββββββββββββββββββββββββββββββββββββββββ */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 337 |
#theme-toggle-btn {
|
| 338 |
+
float: right;
|
| 339 |
+
margin-top: 24px !important;
|
| 340 |
background: transparent !important;
|
| 341 |
border: 1px solid #d1d5db !important;
|
| 342 |
border-radius: 8px !important;
|
|
|
|
| 396 |
with gr.Blocks(css=CSS, title="OpenCodeReview", theme=gr.themes.Soft()) as demo:
|
| 397 |
demo.load(js=JS_RESTORE_THEME)
|
| 398 |
|
| 399 |
+
with gr.Row():
|
| 400 |
+
with gr.Column(scale=4):
|
| 401 |
+
gr.HTML(
|
| 402 |
+
'<h1>π OpenCodeReview</h1>'
|
| 403 |
+
'<p style="color:var(--text-muted);margin-top:-8px">'
|
| 404 |
+
'AI-powered PR review with human-in-the-loop approval</p>'
|
| 405 |
+
)
|
| 406 |
+
with gr.Column(scale=1, min_width=60):
|
| 407 |
+
theme_toggle = gr.Button("π", elem_id="theme-toggle-btn", size="sm", min_width=50, visible=True)
|
| 408 |
+
theme_toggle.click(js=JS_TOGGLE_THEME)
|
|
|
|
| 409 |
|
| 410 |
# ββ State ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 411 |
pr_state = gr.State()
|