瀏覽代碼

Add styling to rendered-markdown class to clamp height and add scrollbar (#17237)

* Add clamp_height to the markdown filter which limits max height to 200 (scrollable) on the container div

* Remove clamp_height option, apply scrolling style to all markdown divs inside td's
bctiemann 1 年之前
父節點
當前提交
dab27695b9
共有 2 個文件被更改,包括 3 次插入0 次删除
  1. 0 0
      netbox/project-static/dist/netbox.css
  2. 3 0
      netbox/project-static/styles/custom/_markdown.scss

文件差異過大導致無法顯示
+ 0 - 0
netbox/project-static/dist/netbox.css


+ 3 - 0
netbox/project-static/styles/custom/_markdown.scss

@@ -30,6 +30,9 @@
 
 // Remove the bottom margin of <p> elements inside a table cell
 td > .rendered-markdown {
+  max-height: 200px;
+  overflow-y: scroll;
+
   p:last-of-type {
     margin-bottom: 0;
   }

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