瀏覽代碼

fix: hide notion code block scrollbar and fix image border-radius

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
rriecc 9 月之前
父節點
當前提交
e3a9d4a321
共有 3 個文件被更改,包括 1744 次插入 和 1501 次删除
  1. 1 0
      package.json
  2. 10 1
      styles/globals.css
  3. 1733 1500
      yarn.lock

+ 1 - 0
package.json

@@ -74,6 +74,7 @@
     "react-icons": "^5.5.0",
     "react-notion-x": "^7.7.3",
     "react-spinners": "^0.17.0",
+    "tailwind-scrollbar-hide": "^4.0.0",
     "three": "^0.182.0",
     "unicode-emoji-json": "^0.8.0"
   },

+ 10 - 1
styles/globals.css

@@ -66,11 +66,20 @@
 
 /* Notion styles */
 .medium-zoom-image {
-  border-radius: 2rem;
+  border-radius: 2rem !important;
 }
 
 .notion-code {
   border-radius: 1rem;
+  overflow: hidden !important;
+}
+
+.notion-code code {
+  scrollbar-width: none;
+}
+
+.notion-code code::-webkit-scrollbar {
+  display: none;
 }
 
 .notion-code-copy-button {

文件差異過大導致無法顯示
+ 1733 - 1500
yarn.lock


部分文件因文件數量過多而無法顯示