MCPcopy Create free account
hub / github.com/NsLearning/LangHelper / fixLocation

Method fixLocation

ChatGPT/src-tauri/src/scripts/export.js:249–266  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

247 this.images = Array.from(document.querySelectorAll("img[srcset]"));
248 }
249 fixLocation() {
250 this.hiddens.forEach((el) => {
251 el.classList.remove("overflow-hidden");
252 });
253 this.spacer.style.display = "none";
254 this.thread.style.maxWidth = "960px";
255 this.thread.style.marginInline = "auto";
256 this.positionForm.style.display = "none";
257 this.scroller.classList.remove("h-full");
258 this.scroller.style.minHeight = "100vh";
259 this.images.forEach((img) => {
260 const srcset = img.getAttribute("srcset");
261 img.setAttribute("srcset_old", srcset);
262 img.setAttribute("srcset", "");
263 });
264 //Fix to the text shifting down when generating the canvas
265 document.body.style.lineHeight = "0.5";
266 }
267 restoreLocation() {
268 this.hiddens.forEach((el) => {
269 el.classList.add("overflow-hidden");

Callers 1

downloadThreadFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected