Explorar el Código

Ticket #4711 - Automations.

AntonLV hace 2 años
padre
commit
fd2d4422c6
Se han modificado 2 ficheros con 13 adiciones y 1 borrados
  1. 1 1
      studio/template/agents_automator_info.html
  2. 12 0
      studio/template/css/agents.css

+ 1 - 1
studio/template/agents_automator_info.html

@@ -21,6 +21,6 @@
     </bx_if:show_scheduler>
     <div class="flex gap-2">
         <div class="w-20 font-semibold"><bx_text:_sys_agents_automators_txt_code /></div>
-        <div><pre>__code__</pre></div>
+        <div class="bx-def-vanilla-html bx-def-vh-sm flex-1 max-w-none"><pre>__code__</pre></div>
     </div>
 </div>

+ 12 - 0
studio/template/css/agents.css

@@ -4,4 +4,16 @@
 }
 .cmt .bx-base-general-unit-meta ul.bx-menu-custom li:first-child .bx-base-general-unit-meta-div {
   display: none;
+}
+.bx-def-vanilla-html pre,
+.cmt-body.bx-def-vanilla-html pre{
+    max-width: 60%;
+    max-height: 20rem;
+
+    border-width: 0;
+    border-radius: 0.375rem;
+
+    background-color: #1f2937;
+
+    color: #e5e7eb;
 }