Spaces:
Running
Running
Commit
·
4ef974a
1
Parent(s):
3604e33
Share btn updates (#10)
Browse files- Share btn updates (0526a60641ba2ca5a1ad3e0426d40b5384ad0644)
Co-authored-by: Mishig Davaadorj <[email protected]>
- share_btn.py +2 -2
share_btn.py
CHANGED
@@ -76,7 +76,7 @@ share_js = """async () => {
|
|
76 |
const htmlImgsMd = htmlImgs.join(`\n`);
|
77 |
|
78 |
const descriptionMd = `#### Input img:
|
79 |
-
<img src='${urlInputImg}'>
|
80 |
|
81 |
#### Caption:
|
82 |
${promptTxt}
|
@@ -92,7 +92,7 @@ ${htmlImgsMd}
|
|
92 |
});
|
93 |
|
94 |
const paramsStr = params.toString();
|
95 |
-
window.open(
|
96 |
|
97 |
shareBtnEl.style.removeProperty('pointer-events');
|
98 |
shareIconEl.style.removeProperty('display');
|
|
|
76 |
const htmlImgsMd = htmlImgs.join(`\n`);
|
77 |
|
78 |
const descriptionMd = `#### Input img:
|
79 |
+
<img src='${urlInputImg}' style='max-height: 350px;'>
|
80 |
|
81 |
#### Caption:
|
82 |
${promptTxt}
|
|
|
92 |
});
|
93 |
|
94 |
const paramsStr = params.toString();
|
95 |
+
window.open(`${window.location.href}/discussions/new?${paramsStr}`, '_blank');
|
96 |
|
97 |
shareBtnEl.style.removeProperty('pointer-events');
|
98 |
shareIconEl.style.removeProperty('display');
|