Skip to content

Commit 4406c88

Browse files
committed
幅が狭い時の実行ボタンの表示を修正
1 parent d19fd0d commit 4406c88

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

app/terminal/exec.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,12 @@ export function ExecFile(props: ExecProps) {
7474

7575
return (
7676
<div className="border border-accent border-2 shadow-md m-2 rounded-box overflow-hidden relative">
77-
<div className="bg-base-200">
77+
<div className="bg-base-200 flex items-center">
7878
<button
79-
className="btn btn-soft btn-accent rounded-none"
79+
/* daisyuiのbtnはheightがvar(--size)で固定。
80+
ここでは最小でそのサイズ、ただし親コンテナがそれより大きい場合に大きくしたい
81+
→ heightを解除し、min-heightをデフォルトのサイズと同じにする */
82+
className="btn btn-soft btn-accent rounded-none h-[unset]! min-h-(--size) self-stretch"
8083
onClick={() => {
8184
if (!ready) {
8285
clearTerminal(terminalInstanceRef.current!);
@@ -92,7 +95,7 @@ export function ExecFile(props: ExecProps) {
9295
>
9396
▶ 実行
9497
</button>
95-
<code className="text-sm ml-4">
98+
<code className="text-left break-all text-sm my-1 ml-4 mr-1">
9699
{getCommandlineStr?.(props.filenames)}
97100
</code>
98101
</div>

0 commit comments

Comments
 (0)