ChenyuRabbitLove commited on
Commit
9acbebf
1 Parent(s): 142364b

feat: optimize gallery display

Browse files
Files changed (2) hide show
  1. app.py +1 -0
  2. css/style.css +8 -0
app.py CHANGED
@@ -29,6 +29,7 @@ with gr.Blocks(theme=seafoam, css=get_content("css/style.css")) as demo:
29
  with gr.Row():
30
  with gr.Column(
31
  scale=1,
 
32
  ):
33
  pet_description = gr.Markdown("# 夥伴", elem_id="pet_avatar_description")
34
  pet_gallery = gr.Gallery(
 
29
  with gr.Row():
30
  with gr.Column(
31
  scale=1,
32
+ elem_classes="gallery_container",
33
  ):
34
  pet_description = gr.Markdown("# 夥伴", elem_id="pet_avatar_description")
35
  pet_gallery = gr.Gallery(
css/style.css CHANGED
@@ -97,6 +97,14 @@ h1::after {
97
  height: 200px;
98
  }
99
 
 
 
 
 
 
 
 
 
100
  #pet_gallery .grid-wrap button {
101
  margin: .5vh;
102
  background: transparent !important;
 
97
  height: 200px;
98
  }
99
 
100
+ .gallery_container .preview {
101
+ background: transparent !important;
102
+ }
103
+
104
+ .gallery_container .preview [data-testid="detailed-image"] {
105
+ padding-top: 10px;
106
+ }
107
+
108
  #pet_gallery .grid-wrap button {
109
  margin: .5vh;
110
  background: transparent !important;