Timothy Jaeryang Baek 1 月之前
父节点
当前提交
0777ab7011
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/lib/components/layout/Navbar/Menu.svelte

+ 2 - 0
src/lib/components/layout/Navbar/Menu.svelte

@@ -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