Update app.py
Browse files
app.py
CHANGED
@@ -593,13 +593,14 @@ def create_interface():
|
|
593 |
.gradio-button { width: 100% !important; }
|
594 |
#main-image { width: 100% !important; height: auto !important; }
|
595 |
#logo-image {
|
|
|
596 |
width: 75px !important; /* 50% of the desktop size for mobile */
|
597 |
height: auto;
|
598 |
}
|
599 |
.gradio-button {
|
600 |
width: 100% !important;
|
601 |
margin: 5px 0 !important;
|
602 |
-
min-height: 44px !important; /*
|
603 |
}
|
604 |
.gradio-textbox { width: 100% !important; }
|
605 |
.gradio-audio { width: 100% !important; }
|
@@ -612,34 +613,33 @@ def create_interface():
|
|
612 |
}
|
613 |
}
|
614 |
|
615 |
-
/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
616 |
.gradio-button {
|
617 |
transition: all 0.3s ease;
|
618 |
}
|
619 |
.gradio-button:active {
|
620 |
transform: scale(0.98);
|
621 |
}
|
622 |
-
|
623 |
-
background: transparent !important;
|
624 |
-
border: none !important;
|
625 |
-
box-shadow: none !important;
|
626 |
-
}
|
627 |
-
|
628 |
-
/* 로고 이미지 스타일 */
|
629 |
#logo-container {
|
630 |
background: transparent !important;
|
631 |
padding: 0;
|
632 |
margin: 0 auto;
|
633 |
text-align: center;
|
634 |
}
|
635 |
-
#logo-image {
|
636 |
-
width: 150px !important; /* Desktop size */
|
637 |
-
height: auto;
|
638 |
-
display: block;
|
639 |
-
margin: 0 auto;
|
640 |
-
}
|
641 |
|
642 |
-
/*
|
643 |
.main-image-container {
|
644 |
background: none;
|
645 |
text-align: center;
|
|
|
593 |
.gradio-button { width: 100% !important; }
|
594 |
#main-image { width: 100% !important; height: auto !important; }
|
595 |
#logo-image {
|
596 |
+
content: url('/static/DIGITAL_GUTPAN_LOGO_m.png'); /* Mobile logo */
|
597 |
width: 75px !important; /* 50% of the desktop size for mobile */
|
598 |
height: auto;
|
599 |
}
|
600 |
.gradio-button {
|
601 |
width: 100% !important;
|
602 |
margin: 5px 0 !important;
|
603 |
+
min-height: 44px !important; /* Improved touch area for mobile */
|
604 |
}
|
605 |
.gradio-textbox { width: 100% !important; }
|
606 |
.gradio-audio { width: 100% !important; }
|
|
|
613 |
}
|
614 |
}
|
615 |
|
616 |
+
/* Desktop view */
|
617 |
+
@media (min-width: 601px) {
|
618 |
+
#logo-image {
|
619 |
+
content: url('/static/DIGITAL_GUTPAN_LOGO_w.png'); /* Desktop logo */
|
620 |
+
width: auto; /* Use the image's original width */
|
621 |
+
height: auto;
|
622 |
+
display: block;
|
623 |
+
margin: 0 auto;
|
624 |
+
}
|
625 |
+
}
|
626 |
+
|
627 |
+
/* Overall UI Enhancements */
|
628 |
.gradio-button {
|
629 |
transition: all 0.3s ease;
|
630 |
}
|
631 |
.gradio-button:active {
|
632 |
transform: scale(0.98);
|
633 |
}
|
634 |
+
/* Logo Container Styling */
|
|
|
|
|
|
|
|
|
|
|
|
|
635 |
#logo-container {
|
636 |
background: transparent !important;
|
637 |
padding: 0;
|
638 |
margin: 0 auto;
|
639 |
text-align: center;
|
640 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
641 |
|
642 |
+
/* Main Image Styling */
|
643 |
.main-image-container {
|
644 |
background: none;
|
645 |
text-align: center;
|