Skip to content

Commit c75015c

Browse files
authored
Fix helper menu issues and align with the design. (#4261)
1 parent 64a2a5b commit c75015c

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

src/assets/css/style.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@
2727
--content-fg: #000;
2828
--content-hover-bg: #adadad;
2929
--content-hover-fg: #000;
30+
31+
/* Code styling colors for help menu*/
32+
--code-text-color: rgba(0, 122, 255, 1);
33+
--code-bg-color: rgba(96, 165, 250, 0.2);
34+
--code-block-bg-color: rgba(60, 60, 60, 0.12);
3035
}
3136

3237
@media (prefers-color-scheme: dark) {

src/components/sidebar/tabs/nodeLibrary/NodeHelpPage.vue

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
/>
1313
<span class="ml-2 font-semibold">{{ node.display_name }}</span>
1414
</div>
15-
<div class="p-4 flex-grow node-help-content max-w-[600px] mx-auto">
15+
<div class="p-4 flex-grow node-help-content w-full mx-auto">
1616
<ProgressSpinner
1717
v-if="isLoading"
1818
class="m-auto"
@@ -188,7 +188,7 @@ const outputList = computed(() =>
188188
189189
.markdown-content :deep(li),
190190
.fallback-content li {
191-
@apply my-1;
191+
@apply my-2;
192192
}
193193
194194
.markdown-content :deep(*:first-child),
@@ -198,7 +198,9 @@ const outputList = computed(() =>
198198
199199
.markdown-content :deep(code),
200200
.fallback-content code {
201-
@apply text-[var(--error-text)] bg-[var(--content-bg)] rounded px-1 py-0.5;
201+
color: var(--code-text-color);
202+
background-color: var(--code-bg-color);
203+
@apply rounded px-1.5 py-0.5;
202204
}
203205
204206
.markdown-content :deep(table),
@@ -227,4 +229,15 @@ const outputList = computed(() =>
227229
.fallback-content thead {
228230
border-bottom: 1px solid var(--p-text-color);
229231
}
232+
233+
.markdown-content :deep(pre),
234+
.fallback-content pre {
235+
@apply rounded p-4 my-4 overflow-x-auto;
236+
background-color: var(--code-block-bg-color);
237+
238+
code {
239+
@apply bg-transparent p-0;
240+
color: var(--p-text-color);
241+
}
242+
}
230243
</style>

0 commit comments

Comments
 (0)