victor HF Staff commited on
Commit
cede9a2
·
1 Parent(s): 008f64c

Add responsive scrolling to tables in prose

Browse files

Applied block display, max width, and custom scrollbar styles to tables within elements with the 'prose' class to improve horizontal scrolling and appearance, especially on smaller screens.

Files changed (1) hide show
  1. src/styles/main.css +4 -0
src/styles/main.css CHANGED
@@ -53,6 +53,10 @@
53
  @apply [-ms-overflow-style:none] [scrollbar-width:none] [&::-ms-scrollbar]:hidden [&::-webkit-scrollbar]:hidden;
54
  }
55
 
 
 
 
 
56
  /* .scrollbar-custom {
57
  @apply scrollbar-thin scrollbar-track-transparent scrollbar-thumb-black/10 scrollbar-thumb-rounded-full scrollbar-w-1 hover:scrollbar-thumb-black/20 dark:scrollbar-thumb-white/10 dark:hover:scrollbar-thumb-white/20;
58
  } */
 
53
  @apply [-ms-overflow-style:none] [scrollbar-width:none] [&::-ms-scrollbar]:hidden [&::-webkit-scrollbar]:hidden;
54
  }
55
 
56
+ .prose table {
57
+ @apply block max-w-full overflow-x-auto scrollbar-thin scrollbar-track-transparent scrollbar-thumb-black/10 scrollbar-thumb-rounded-full scrollbar-w-1 hover:scrollbar-thumb-black/20 dark:scrollbar-thumb-white/10 dark:hover:scrollbar-thumb-white/20;
58
+ }
59
+
60
  /* .scrollbar-custom {
61
  @apply scrollbar-thin scrollbar-track-transparent scrollbar-thumb-black/10 scrollbar-thumb-rounded-full scrollbar-w-1 hover:scrollbar-thumb-black/20 dark:scrollbar-thumb-white/10 dark:hover:scrollbar-thumb-white/20;
62
  } */