소스 검색

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;
   }

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.