feat(files): an HTML file's Preview sits beside Whole file
The Changes panel's view toggle becomes Changes | Whole file | Preview for an HTML file; the Preview/Raw button on the file's name row stays for markdown.
This commit is contained in:
+3
-3
@@ -678,9 +678,9 @@ reads the workspace's git surface in five modes:
|
||||
least one line tall (`MIN_ROW`), so an empty filler row keeps the two
|
||||
columns aligned. An image file (png, jpg, gif, webp, avif, bmp, ico, svg) is
|
||||
shown as the picture (`/git/raw`), an HTML file (`.html`/`.htm`) opens
|
||||
like any file (Changes, or Whole file as source) with a **Preview**
|
||||
button — on Changes too — that shows it as the page; **Raw** goes back to
|
||||
its source — and a conflicted file opens in the
|
||||
like any file (Changes, or Whole file as source), and a third view
|
||||
beside them, **Changes | Whole file | Preview**, shows it as the page —
|
||||
and a conflicted file opens in the
|
||||
conflict view. The page (here, in a Chat file preview, and on a
|
||||
double-click in the File Explorer, whose right-click menu keeps
|
||||
**Download**) runs in the chat artifact's sandbox (`HtmlFrame.tsx`:
|
||||
|
||||
Reference in New Issue
Block a user