Skip to content

Commit

Permalink
feat(client): improve RenderCode component style (#482)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexzhang1030 authored Jun 25, 2024
1 parent d6a1faf commit f856340
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions packages/applet/src/components/basic/CodeBlock.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,7 @@ const rendered = computed(() => {
text-align: right;
--at-apply: 'text-truegray:50';
}
.code-block pre:focus-visible {
outline: none;
}
</style>
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ function close() {

<template>
<div class="absolute left-0 top-0 h-full w-full flex flex-col rounded-br-2.5 rounded-tr-2.5 bg-white p2 dark:bg-[#121212]">
<div class="h-12 w-full flex items-center justify-between py-2">
<div class="h-12 w-full flex items-center justify-between p-2">
<span class="font-500">Render Code</span>
<i class="i-carbon-close cursor-pointer hover:op80" @click="close" />
</div>
<div class="no-scrollbar flex-1 select-none overflow-scroll">
<div class="flex-1 overflow-scroll text-3.5">
<CodeBlock :code="code" lang="javascript" />
</div>
</div>
Expand Down

0 comments on commit f856340

Please sign in to comment.