Просмотр исходного кода

17464 fix margins for custom-field markdown description (#17775)

* 17464 fix margins for custom-field markdown description

* 17464 fix margins for custom-field markdown description

* 17464 review changes

* 17464 update comments
Arthur Hanson 1 год назад
Родитель
Сommit
27a39339df
2 измененных файлов с 8 добавлено и 5 удалено
  1. 0 0
      netbox/project-static/dist/netbox.css
  2. 8 5
      netbox/project-static/styles/custom/_markdown.scss

Разница между файлами не показана из-за своего большого размера
+ 0 - 0
netbox/project-static/dist/netbox.css


+ 8 - 5
netbox/project-static/styles/custom/_markdown.scss

@@ -28,16 +28,19 @@
 
 
 }
 }
 
 
-// Remove the bottom margin of <p> elements inside a table cell
-td > .rendered-markdown {
-  max-height: 200px;
-  overflow-y: scroll;
-
+// Remove the bottom margin of the last <p> elements in markdown
+.rendered-markdown {
   p:last-of-type {
   p:last-of-type {
     margin-bottom: 0;
     margin-bottom: 0;
   }
   }
 }
 }
 
 
+// fix layout of rendered markdown inside a table cell
+td > .rendered-markdown {
+  max-height: 200px;
+  overflow-y: scroll;
+}
+
 // Markdown preview
 // Markdown preview
 .markdown-widget {
 .markdown-widget {
   .preview {
   .preview {

Некоторые файлы не были показаны из-за большого количества измененных файлов