add code-box-log class

This commit is contained in:
pat-s 2024-12-27 15:16:46 +01:00
parent 26380934b1
commit f32a4bea2a
No known key found for this signature in database
GPG key ID: 3C6318841EF78925
2 changed files with 6 additions and 1 deletions

View file

@ -1,7 +1,7 @@
<template>
<div v-if="pipeline" class="flex flex-col pt-10 md:pt-0">
<div
class="flex flex-col flex-grow shadow md:mt-0 !p-0 !rounded-none !md:rounded-md overflow-hidden code-box"
class="flex flex-col flex-grow shadow md:mt-0 !p-0 !rounded-none !md:rounded-md overflow-hidden code-box-log"
@mouseover="showActions = true"
@mouseleave="showActions = false"
>

View file

@ -170,3 +170,8 @@ body,
code:not(pre > code) {
@apply bg-wp-code-inline-100 text-wp-code-inline-text-100 px-1.5 py-0.5 rounded-md;
}
.code-box-log {
@apply bg-wp-code-300 p-4 rounded-md text-sm text-wp-code-text-100 break-words;
white-space: pre-wrap;
}