mirror of
https://github.com/gradio-app/gradio.git
synced 2025-03-25 12:10:31 +08:00
Fix styling issues with Audio, Image and Video components (#5934)
* audio styling fix * video styling fix * image examples styling fix * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
This commit is contained in:
parent
3618238960
commit
8d909624f6
8
.changeset/sad-webs-end.md
Normal file
8
.changeset/sad-webs-end.md
Normal file
@ -0,0 +1,8 @@
|
||||
---
|
||||
"@gradio/audio": minor
|
||||
"@gradio/image": minor
|
||||
"@gradio/video": minor
|
||||
"gradio": minor
|
||||
---
|
||||
|
||||
feat:Fix styling issues with Audio, Image and Video components
|
@ -362,10 +362,4 @@
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.container {
|
||||
padding: var(--size-2);
|
||||
width: var(--size-full);
|
||||
height: var(--size-14);
|
||||
}
|
||||
</style>
|
||||
|
@ -31,3 +31,12 @@
|
||||
{:catch error}
|
||||
<p style="color: red;">{error.message}</p>
|
||||
{/await}
|
||||
|
||||
|
||||
<style>
|
||||
audio {
|
||||
padding: var(--size-2);
|
||||
width: var(--size-full);
|
||||
height: var(--size-14);
|
||||
}
|
||||
</style>
|
@ -17,11 +17,6 @@
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.container {
|
||||
border-radius: var(--radius-lg);
|
||||
max-width: none;
|
||||
}
|
||||
|
||||
.container.selected {
|
||||
border-color: var(--border-color-accent);
|
||||
}
|
||||
|
@ -18,5 +18,7 @@
|
||||
img {
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
border-radius: var(--radius-lg);
|
||||
max-width: none;
|
||||
}
|
||||
</style>
|
||||
|
@ -169,14 +169,6 @@
|
||||
background-color: rgba(255, 255, 255, 0.9);
|
||||
}
|
||||
|
||||
video {
|
||||
position: inherit;
|
||||
background-color: black;
|
||||
width: var(--size-full);
|
||||
height: var(--size-full);
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.mirror {
|
||||
transform: scaleX(-1);
|
||||
}
|
||||
|
@ -61,7 +61,10 @@
|
||||
|
||||
<style>
|
||||
video {
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
position: inherit;
|
||||
background-color: black;
|
||||
width: var(--size-full);
|
||||
height: var(--size-full);
|
||||
object-fit: contain;
|
||||
}
|
||||
</style>
|
||||
|
Loading…
x
Reference in New Issue
Block a user