Skip to content
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
2 changes: 1 addition & 1 deletion app_crates/app_components/src/tree_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ pub fn FileRendererHighlight(
class="peer"
checked=checked
on:change=move |_| {
const HIGHLIGHT_CLASS: &str = "h-full max-h-[370px] overflow-y-auto overscroll-y-contain whitespace-pre-wrap p-4 [&_span]:text-xs rounded-md bg-muted";
const HIGHLIGHT_CLASS: &str = "h-full max-h-[370px] overflow-y-auto whitespace-pre-wrap p-4 [&_span]:text-xs rounded-md bg-muted";
let highlighted_content = highlight_code(&content, language, Some(name));
let html = format!(
"<div><h3 class='font-semibold mb-2'>{name}</h3><pre class='{HIGHLIGHT_CLASS}' data-name='{SYNTECT_HIGHLIGHTER_CODE}'><code>{highlighted_content}</code></pre></div>",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub fn SyntectHighlighterCode(
) -> impl IntoView {
let merged_class = tw_merge!(
if show_scrollbar_on_hover { "scrollbar__on_hover" } else { "" },
"h-full max-h-[370px] overflow-y-auto overscroll-y-contain",
"h-full max-h-[370px] overflow-y-auto",
"whitespace-pre-wrap p-4 [&_span]:text-xs rounded-md bg-muted",
class
);
Expand Down