Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -95,10 +95,14 @@ with gr.Blocks(css="""
|
|
| 95 |
#search_output {
|
| 96 |
max-width: 400px; /* Adjusts the maximum width of the gallery container */
|
| 97 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 98 |
#search_output img {
|
| 99 |
width: 150px !important; /* Adjusts the width of the images */
|
| 100 |
-
height:
|
| 101 |
-
margin-right:
|
| 102 |
}
|
| 103 |
#search_output .gallery-item {
|
| 104 |
display: flex !important;
|
|
@@ -116,7 +120,9 @@ with gr.Blocks(css="""
|
|
| 116 |
|
| 117 |
with gr.Row():
|
| 118 |
with gr.Column(scale=3):
|
| 119 |
-
search_query_input = gr.Textbox(label="Search YouTube",
|
|
|
|
|
|
|
| 120 |
search_button = gr.Button("Search")
|
| 121 |
search_output = gr.Gallery(label="Search Results", columns=1, height="800px", elem_id="search_output")
|
| 122 |
|
|
|
|
| 95 |
#search_output {
|
| 96 |
max-width: 400px; /* Adjusts the maximum width of the gallery container */
|
| 97 |
}
|
| 98 |
+
#search_query_input input {
|
| 99 |
+
width: 100%; /* Makes the search bar take the full width of its container */
|
| 100 |
+
max-width: 400px; /* Set the maximum width of the search bar */
|
| 101 |
+
}
|
| 102 |
#search_output img {
|
| 103 |
width: 150px !important; /* Adjusts the width of the images */
|
| 104 |
+
height: 150px !important;
|
| 105 |
+
margin-right: 10px;
|
| 106 |
}
|
| 107 |
#search_output .gallery-item {
|
| 108 |
display: flex !important;
|
|
|
|
| 120 |
|
| 121 |
with gr.Row():
|
| 122 |
with gr.Column(scale=3):
|
| 123 |
+
search_query_input = gr.Textbox(label="Search YouTube",
|
| 124 |
+
placeholder="Enter your search query here",
|
| 125 |
+
elem_id="search_query_input") # Add elem_id to target in CSS
|
| 126 |
search_button = gr.Button("Search")
|
| 127 |
search_output = gr.Gallery(label="Search Results", columns=1, height="800px", elem_id="search_output")
|
| 128 |
|