This commit is contained in:
Timothy Jaeryang Baek 2025-03-15 18:28:02 +00:00
parent d8eade736f
commit 0777ab7011

View File

@ -74,6 +74,8 @@
const virtualWidth = 800; // Fixed width (adjust as needed) const virtualWidth = 800; // Fixed width (adjust as needed)
// Clone the container to avoid layout shifts // Clone the container to avoid layout shifts
const clonedElement = containerElement.cloneNode(true); const clonedElement = containerElement.cloneNode(true);
clonedElement.classList.add('text-black');
clonedElement.classList.add('dark:text-white');
clonedElement.style.width = `${virtualWidth}px`; // Apply fixed width clonedElement.style.width = `${virtualWidth}px`; // Apply fixed width
clonedElement.style.height = 'auto'; // Allow content to expand clonedElement.style.height = 'auto'; // Allow content to expand