Spaces:
Running
on
Zero
Running
on
Zero
viklofg
commited on
Commit
·
5867a9c
1
Parent(s):
19cd755
Make the transcription sticky
Browse files- app/gradio_config.py +11 -0
- app/tabs/visualizer.py +1 -1
app/gradio_config.py
CHANGED
@@ -21,6 +21,17 @@ css = """
|
|
21 |
|
22 |
.transcription {
|
23 |
font-size: large;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
}
|
25 |
|
26 |
/* style of textline svg elements */
|
|
|
21 |
|
22 |
.transcription {
|
23 |
font-size: large;
|
24 |
+
position: sticky;
|
25 |
+
top: 20px;
|
26 |
+
}
|
27 |
+
|
28 |
+
.transcription-column {
|
29 |
+
height: 100vh;
|
30 |
+
}
|
31 |
+
|
32 |
+
/* this is needed in order to make the transcription sticky */
|
33 |
+
.app {
|
34 |
+
overflow: visible;
|
35 |
}
|
36 |
|
37 |
/* style of textline svg elements */
|
app/tabs/visualizer.py
CHANGED
@@ -65,7 +65,7 @@ with gr.Blocks() as visualizer:
|
|
65 |
right = gr.Button("Next →", visible=False, scale=0)
|
66 |
|
67 |
# Transcription panel
|
68 |
-
with gr.Column(scale=1):
|
69 |
gr.Markdown("## Transcription")
|
70 |
transcription = gr.HTML(elem_classes="transcription", container=True, max_height="60vh")
|
71 |
|
|
|
65 |
right = gr.Button("Next →", visible=False, scale=0)
|
66 |
|
67 |
# Transcription panel
|
68 |
+
with gr.Column(scale=1, elem_classes="transcription-column"):
|
69 |
gr.Markdown("## Transcription")
|
70 |
transcription = gr.HTML(elem_classes="transcription", container=True, max_height="60vh")
|
71 |
|