Update app.py
Browse filesTestar att lägga till CSS för att göra appen mobilvänlig
app.py
CHANGED
|
@@ -859,6 +859,28 @@ footer {display: none !important;}
|
|
| 859 |
.gradio-footer {display: none !important;}
|
| 860 |
.gradio-container .footer {display: none !important;}
|
| 861 |
.gradio-container .gr-footer {display: none !important;}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 862 |
"""
|
| 863 |
|
| 864 |
with gr.Blocks(css=custom_css, title="ChargeNode Kundtjänst") as app:
|
|
|
|
| 859 |
.gradio-footer {display: none !important;}
|
| 860 |
.gradio-container .footer {display: none !important;}
|
| 861 |
.gradio-container .gr-footer {display: none !important;}
|
| 862 |
+
@media only screen and (max-width: 600px) {
|
| 863 |
+
.gradio-container {
|
| 864 |
+
max-width: 100%;
|
| 865 |
+
bottom: 0;
|
| 866 |
+
right: 0;
|
| 867 |
+
border-radius: 0;
|
| 868 |
+
box-shadow: none;
|
| 869 |
+
}
|
| 870 |
+
|
| 871 |
+
#chatbot_conversation {
|
| 872 |
+
max-height: 200px;
|
| 873 |
+
}
|
| 874 |
+
|
| 875 |
+
.gr-button, .support-btn {
|
| 876 |
+
width: 100%;
|
| 877 |
+
margin: 5px 0;
|
| 878 |
+
}
|
| 879 |
+
|
| 880 |
+
.flex-row {
|
| 881 |
+
flex-direction: column;
|
| 882 |
+
}
|
| 883 |
+
}
|
| 884 |
"""
|
| 885 |
|
| 886 |
with gr.Blocks(css=custom_css, title="ChargeNode Kundtjänst") as app:
|