Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(client): improve RenderCode component style #482

Merged
merged 1 commit into from
Jun 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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