Skip to content

Commit

Permalink
🐛 Fikset kodevisning på Aksel
Browse files Browse the repository at this point in the history
  • Loading branch information
KenAJoh committed Apr 17, 2023
1 parent ac05951 commit 6ab0935
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const CodeSnippet = ({
return null;
}

let language = code?.language as Language;
let language = (code?.language as Language) ?? "bash";

switch (code?.language) {
case "js":
Expand All @@ -31,7 +31,6 @@ const CodeSnippet = ({
language = "bash";
break;
default:
language = "bash";
break;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ export const IconSidebar = ({
theme={undefined}
>
{({ tokens, getLineProps, getTokenProps }) => (
<pre className="relative m-0 max-w-[80vw] overflow-x-auto overflow-y-auto rounded-b-lg p-3 font-mono lg:max-w-[16rem]">
<pre className="relative m-0 max-w-[80vw] overflow-x-auto overflow-y-auto rounded-b-lg p-3 font-mono lg:max-w-[20rem]">
{tokens.map((line, i) => (
<div
key={i}
Expand Down Expand Up @@ -266,7 +266,7 @@ export const IconSidebar = ({
theme={undefined}
>
{({ tokens, getLineProps, getTokenProps }) => (
<pre className="w-text relative m-0 max-w-[80vw] overflow-x-auto overflow-y-auto rounded-b-lg p-3 font-mono lg:w-auto lg:max-w-[16rem]">
<pre className="w-text relative m-0 max-w-[80vw] overflow-x-auto overflow-y-auto rounded-b-lg p-3 font-mono lg:w-auto lg:max-w-[20rem]">
{tokens.map((line, i) => (
<div
key={i}
Expand Down

0 comments on commit 6ab0935

Please sign in to comment.