Spaces:
Sleeping
Sleeping
Commit
·
f3b8b5d
1
Parent(s):
e5fb3be
update
Browse files
app.py
CHANGED
@@ -61,8 +61,8 @@ observe_js = """
|
|
61 |
() => {
|
62 |
const observer = new ResizeObserver((entries) => {
|
63 |
entries.forEach((entry) => {
|
64 |
-
const target = entry.target
|
65 |
-
const newWidth = entry.contentRect.width
|
66 |
|
67 |
target.style.backgroundSize = `${newWidth}px`;
|
68 |
target.style.setProperty("--channel-indicator-size", `${newWidth*0.025}px`);
|
|
|
61 |
() => {
|
62 |
const observer = new ResizeObserver((entries) => {
|
63 |
entries.forEach((entry) => {
|
64 |
+
const target = entry.target;
|
65 |
+
const newWidth = entry.contentRect.width;
|
66 |
|
67 |
target.style.backgroundSize = `${newWidth}px`;
|
68 |
target.style.setProperty("--channel-indicator-size", `${newWidth*0.025}px`);
|