Update app.py
Browse files
app.py
CHANGED
@@ -125,7 +125,7 @@ body {
|
|
125 |
position: relative;
|
126 |
}
|
127 |
button, .button {
|
128 |
-
background-color: #
|
129 |
color: white;
|
130 |
border: none;
|
131 |
padding: 0.5rem 1rem;
|
@@ -136,7 +136,15 @@ button, .button {
|
|
136 |
line-height: 1.25rem;
|
137 |
}
|
138 |
button:hover, .button:hover {
|
139 |
-
background-color: #
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
140 |
}
|
141 |
.no-papers {
|
142 |
text-align: center;
|
@@ -208,7 +216,7 @@ with demo:
|
|
208 |
paper_list = gr.HTML(elem_classes=["paper-list"])
|
209 |
|
210 |
demo.load(initialize_app, outputs=[paper_list, page_info])
|
211 |
-
refresh_button = gr.Button("↻", variant="primary") # Refresh button
|
212 |
refresh_button.click(refresh_papers, outputs=[paper_list, page_info])
|
213 |
prev_button.click(paper_manager.prev_page, outputs=[paper_list, page_info])
|
214 |
next_button.click(paper_manager.next_page, outputs=[paper_list, page_info])
|
|
|
125 |
position: relative;
|
126 |
}
|
127 |
button, .button {
|
128 |
+
background-color: #4caf50; /* Modern green color */
|
129 |
color: white;
|
130 |
border: none;
|
131 |
padding: 0.5rem 1rem;
|
|
|
136 |
line-height: 1.25rem;
|
137 |
}
|
138 |
button:hover, .button:hover {
|
139 |
+
background-color: #388e3c; /* Darker green on hover */
|
140 |
+
}
|
141 |
+
button.refresh-btn {
|
142 |
+
padding: 0.5rem; /* Smaller padding for refresh button */
|
143 |
+
font-size: 1rem;
|
144 |
+
background-color: #2196f3; /* Blue color for refresh button */
|
145 |
+
}
|
146 |
+
button.refresh-btn:hover {
|
147 |
+
background-color: #1976d2; /* Darker blue on hover */
|
148 |
}
|
149 |
.no-papers {
|
150 |
text-align: center;
|
|
|
216 |
paper_list = gr.HTML(elem_classes=["paper-list"])
|
217 |
|
218 |
demo.load(initialize_app, outputs=[paper_list, page_info])
|
219 |
+
refresh_button = gr.Button("↻", variant="primary", elem_classes=["refresh-btn"]) # Refresh button styled and resized
|
220 |
refresh_button.click(refresh_papers, outputs=[paper_list, page_info])
|
221 |
prev_button.click(paper_manager.prev_page, outputs=[paper_list, page_info])
|
222 |
next_button.click(paper_manager.next_page, outputs=[paper_list, page_info])
|