Icons — toolbar buttons are now 32×32 line-icon buttons (paper/document for note, terminal-prompt for terminal, globe
for website). Tooltips on hover show label + shortcut. SVGs are inline in src/canvas/icons.tsx, using currentColor so they inherit the text color. Embed website — new WebCard kind: - Click the globe → prompt() for URL (auto-prepends https:// if missing). - Card layout: header (title or hostname) → URL bar (monospace, Enter to navigate, Esc to cancel) → iframe sandboxed with allow-scripts allow-same-origin allow-forms allow-popups allow-popups-to-escape-sandbox. - Right-click the header to rename. Sites with X-Frame-Options: DENY won't render — that's the iframe-route caveat I mentioned; we can upgrade to a real Tauri Webview later if too many sites are blocked. Shortcuts — all gated on !isInEditable(activeElement) so they don't fire while typing in CodeMirror, an input, or xterm: - Ctrl/Cmd+D — duplicate the top-z card (terminals get a fresh shell, same position+28px, same title) - Ctrl/Cmd+N — new note - Ctrl/Cmd+T — new terminal - Delete / Backspace — close the top-z card "Top-z card" = the one most recently clicked or just created, which matches the "click to focus" model we already have. To duplicate a terminal: click its header to focus, then Ctrl+D — xterm itself doesn't get the keystroke because the header isn't an editable target.
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
4
dist/index.html
vendored
4
dist/index.html
vendored
@@ -4,8 +4,8 @@
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Infinite</title>
|
||||
<script type="module" crossorigin src="/assets/index-DaPgpxZP.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-DJpJgVAz.css">
|
||||
<script type="module" crossorigin src="/assets/index-CO8hCyPF.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-B8MxvBkv.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
|
||||
Reference in New Issue
Block a user