Skip to content

Commit a3ab2ee

Browse files
authored
Merge pull request #111 from ut-code/fix-terminal-ui
terminal周りのuiなどcssを修正
2 parents 858ff56 + 6658ad1 commit a3ab2ee

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

app/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default function RootLayout({
2424
}: Readonly<{ children: ReactNode }>) {
2525
return (
2626
<html lang="ja">
27-
<body className="w-screen h-screen bg-inherit! text-inherit! m-0!">
27+
<body className="w-screen min-h-screen bg-transparent! text-inherit! m-0!">
2828
{/* mocha.css がbodyに背景色などを設定してしまうので、それを上書きしている */}
2929
<AutoAnonymousLogin />
3030
<SidebarMdProvider>

app/terminal/page.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default function RuntimeTestPage() {
2323

2424
<Heading level={2}>REPLとコード実行のサンプル</Heading>
2525
{/* name of each tab group should be unique */}
26-
<div className="tabs tabs-border">
26+
<div className="tabs tabs-box">
2727
{Object.entries(sampleConfig).map(([lang, config]) => (
2828
<Fragment key={lang}>
2929
<input
@@ -32,7 +32,7 @@ export default function RuntimeTestPage() {
3232
className="tab"
3333
aria-label={lang}
3434
/>
35-
<div className="tab-content border-base-300 bg-base-200 p-4">
35+
<div className="tab-content border-base-300 bg-base-100">
3636
<RuntimeSample lang={lang as RuntimeLang} config={config} />
3737
</div>
3838
</Fragment>
@@ -57,7 +57,7 @@ interface SampleConfig {
5757
const sampleConfig: Record<RuntimeLang, SampleConfig> = {
5858
python: {
5959
repl: true,
60-
replInitContent: '>>> print("Hello, World!")\x1b[0m\nHello, World!',
60+
replInitContent: '>>> print("Hello, World!")\nHello, World!',
6161
editor: {
6262
"main.py": 'print("Hello, World!")',
6363
},
@@ -66,15 +66,15 @@ const sampleConfig: Record<RuntimeLang, SampleConfig> = {
6666
ruby: {
6767
repl: true,
6868
replInitContent:
69-
'irb(main):001:0> puts "Hello, World!"\x1b[0m\nHello, World!',
69+
'irb(main):001:0> puts "Hello, World!"\nHello, World!',
7070
editor: {
7171
"main.rb": 'puts "Hello, World!"',
7272
},
7373
exec: ["main.rb"],
7474
},
7575
javascript: {
7676
repl: true,
77-
replInitContent: '> console.log("Hello, World!");\x1b[0m\nHello, World!',
77+
replInitContent: '> console.log("Hello, World!");\nHello, World!',
7878
editor: {
7979
"main.js": 'console.log("Hello, World!");',
8080
},
@@ -84,7 +84,7 @@ const sampleConfig: Record<RuntimeLang, SampleConfig> = {
8484
repl: false,
8585
editor: {
8686
"main.ts":
87-
'function greet(name: string): void {\x1b[0m\n console.log("Hello, " + name + "!");\x1b[0m\n}\x1b[0m\n\x1b[0m\ngreet("World");',
87+
'function greet(name: string): void {\n console.log("Hello, " + name + "!");\n}\n\ngreet("World");',
8888
},
8989
exec: ["main.ts"],
9090
},
@@ -269,7 +269,7 @@ function MochaTest() {
269269
</>
270270
)}
271271
</p>
272-
<div className="m-0!" id="mocha" />
272+
<div className="m-0! font-sans!" id="mocha" />
273273
</div>
274274
);
275275
}

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"@types/react": "^19",
6060
"@types/react-dom": "^19",
6161
"@types/react-syntax-highlighter": "^15.5.13",
62-
"daisyui": "^5.0.50",
62+
"daisyui": "^5.5.5",
6363
"drizzle-kit": "^0.31.5",
6464
"eslint": "^9",
6565
"eslint-config-next": "<15.4",

0 commit comments

Comments
 (0)