Skip to content

Commit

Permalink
Fix styling for code block
Browse files Browse the repository at this point in the history
  • Loading branch information
markwalet committed Jan 27, 2023
1 parent 7ca537b commit 35bbac8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/js/asset.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 10 additions & 1 deletion resources/js/components/ModalActionResponse.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<ModalContent>
<p v-if="data.html" v-html="data.html" />
<div v-if="data.body" v-text="data.body" />
<pre v-if="data.code" class="block whitespace-pre overflow-x-scroll bg-slate-800 text-slate-50 rounded-lg p-5 shadow-md">
<pre v-if="data.code">
<code v-text="data.code"></code>
</pre>
</ModalContent>
Expand Down Expand Up @@ -52,4 +52,13 @@ export default {
</script>

<style scoped>
pre {
color: #f8fafc;
background-color: #1e293b;
overflow-x: auto;
border-radius: 0.75rem;
padding: 1.25rem;
box-shadow: 0 4px 6px -1px rgb(0 0 0 / 10%), 0 2px 4px -2px rgb(0 0 0 / 10%);
display: flex;
}
</style>

0 comments on commit 35bbac8

Please sign in to comment.