ginipick commited on
Commit
53b9612
ยท
verified ยท
1 Parent(s): 9b7a112

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -2
app.py CHANGED
@@ -1,4 +1,17 @@
1
- import os, re, time, json, datetime, requests, gradio as gr
 
 
 
 
 
 
 
 
 
 
 
 
 
2
 
3
  # โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ 1. ๊ธฐ๋ณธ ์„ค์ • โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
4
  BEST_FILE, PER_PAGE = "best_games.json", 9
@@ -81,6 +94,7 @@ def html(cards, pg, total):
81
  padding: 0;
82
  font-family: Poppins, sans-serif;
83
  background: #f0f0f0;
 
84
  }
85
  .container {
86
  display: flex;
@@ -97,6 +111,8 @@ def html(cards, pg, total):
97
  height: calc(100vh - 80px);
98
  box-sizing: border-box;
99
  padding: 10px;
 
 
100
  }
101
  .card {
102
  background: #fff;
@@ -106,6 +122,7 @@ def html(cards, pg, total):
106
  display: flex;
107
  flex-direction: column;
108
  height: 100%;
 
109
  }
110
  .hdr {
111
  padding: 10px;
@@ -197,7 +214,7 @@ def html(cards, pg, total):
197
  # โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ 6. Gradio Blocks UI โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
198
  def build():
199
  _init_best()
200
- with gr.Blocks(title="Vibe Game Craft", css="body{margin:0;padding:0;overflow:hidden;} footer{display:none;}") as demo:
201
  # ์ƒํƒœ ๋ฐ ์ถœ๋ ฅ
202
  bp = gr.State(1)
203
  out = gr.HTML()
 
1
+ .ttl {
2
+ margin: 0;
3
+ font-size: 0.9rem;
4
+ font-weight: 600;
5
+ color: #333;
6
+ white-space: nowrap;
7
+ overflow: hidden;
8
+ text-overflow: ellipsis;
9
+ }
10
+ .date {
11
+ margin-top: 0;
12
+ font-size: 0.7rem;
13
+ color: #777;
14
+ }import os, re, time, json, datetime, requests, gradio as gr
15
 
16
  # โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ 1. ๊ธฐ๋ณธ ์„ค์ • โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
17
  BEST_FILE, PER_PAGE = "best_games.json", 9
 
94
  padding: 0;
95
  font-family: Poppins, sans-serif;
96
  background: #f0f0f0;
97
+ overflow: hidden;
98
  }
99
  .container {
100
  display: flex;
 
111
  height: calc(100vh - 80px);
112
  box-sizing: border-box;
113
  padding: 10px;
114
+ max-height: calc(100vh - 80px);
115
+ overflow: hidden;
116
  }
117
  .card {
118
  background: #fff;
 
122
  display: flex;
123
  flex-direction: column;
124
  height: 100%;
125
+ max-height: 100%;
126
  }
127
  .hdr {
128
  padding: 10px;
 
214
  # โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ 6. Gradio Blocks UI โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
215
  def build():
216
  _init_best()
217
+ with gr.Blocks(title="Vibe Game Craft", css="body{margin:0;padding:0;overflow:hidden;} footer{display:none;} .gradio-container{overflow:hidden;}") as demo:
218
  # ์ƒํƒœ ๋ฐ ์ถœ๋ ฅ
219
  bp = gr.State(1)
220
  out = gr.HTML()