Web UI on Ant Design, scrollable factory columns, fix empty page after deleting the open chat
Buttons, fields, drop-downs, check boxes, tabs, dialogs and notices are Ant Design components; their tokens come from the theme variables (web/src/ui). Every factory board column has its own vertical scrollbar. ChatView rendered fewer hooks once its chat was deleted. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
90b9ab6670
commit
6b1a1742b2
79 files changed
+2628
-1393
No files matched your search
@@ -1,3 +1,4 @@
|
||||
import { Checkbox } from "antd";
|
||||
export function Diff({ diff }: { diff: string }) {
|
||||
const lines = diff.replace(/\n+$/, "").split("\n");
|
||||
return (
|
||||
@@ -43,10 +44,9 @@ export function HunkDiff({ diff, selected, onToggle }: { diff: string; selected:
|
||||
))}
|
||||
{hunks.map((h, i) => (
|
||||
<div key={i} className={`hunk-block ${selected[i] ? "" : "off"}`}>
|
||||
<label className="hunk-head">
|
||||
<input type="checkbox" checked={!!selected[i]} onChange={() => onToggle(i)} />
|
||||
<Checkbox className="hunk-head" checked={!!selected[i]} onChange={() => onToggle(i)}>
|
||||
<span>{h[0]}</span>
|
||||
</label>
|
||||
</Checkbox>
|
||||
{h.slice(1).map((l, j) => (
|
||||
<div key={j} className={l.startsWith("+") ? "add" : l.startsWith("-") ? "del" : ""}>
|
||||
{l || " "}
|
||||
|
||||
Reference in new issue
Block a user