@vincenthanxiaodu/pi-web 1.202608.37 → 1.202608.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{CodeViewer-CpoxeNgW.js → CodeViewer-DWMYXHbj.js} +1 -1
- package/dist/client/assets/{TerminalPanel-Bp-wWGWw.js → TerminalPanel-FojQLt0o.js} +1 -1
- package/dist/client/assets/{index-dBqwQ79B.js → index-CCOS1IF6.js} +325 -302
- package/dist/client/index.html +1 -1
- package/dist/pi-web-plugins/git/browser/git-panel.js +6 -1
- package/dist/pi-web-plugins/git/browser/gitSplitLayout.js +12 -0
- package/package.json +1 -1
package/dist/client/index.html
CHANGED
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--pi-bg); color: var(--pi-text); }
|
|
124
124
|
body { min-height: 100dvh; }
|
|
125
125
|
</style>
|
|
126
|
-
<script type="module" crossorigin src="./assets/index-
|
|
126
|
+
<script type="module" crossorigin src="./assets/index-CCOS1IF6.js"></script>
|
|
127
127
|
<link rel="modulepreload" crossorigin href="./assets/vendor-editor-core-CXO8gGab.js">
|
|
128
128
|
<link rel="modulepreload" crossorigin href="./assets/vendor-editor-languages-CpW4sJsX.js">
|
|
129
129
|
</head>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// Generated from pi-web-plugins/git/browser/git-panel.ts. Do not edit directly.
|
|
2
|
+
import { gitSplitClass } from "./gitSplitLayout.js";
|
|
2
3
|
import { GIT_DIFF_OPERATION, GIT_STATUS_OPERATION, parseGitDiffResponse, parseGitStatusResponse, } from "./git-contract.js";
|
|
3
4
|
import { buildGitFileList } from "./gitFileList.js";
|
|
4
5
|
import { buildGitFileTree, collectGitFileTreeDirectoryPaths } from "./gitFileTree.js";
|
|
@@ -348,7 +349,7 @@ function renderGitPanel(html, controller, context) {
|
|
|
348
349
|
</div>
|
|
349
350
|
</section>
|
|
350
351
|
${state.error === undefined ? null : html `<div class="git-error" role="alert">${state.error}</div>`}
|
|
351
|
-
<section class
|
|
352
|
+
<section class=${gitSplitClass(state.selectedDiffPath)}>
|
|
352
353
|
<div class="git-file-list">${renderFileList(html, controller, context, state, viewState)}</div>
|
|
353
354
|
<div class="git-viewer">${renderDiffViewer(html, state)}</div>
|
|
354
355
|
</section>
|
|
@@ -579,6 +580,10 @@ const gitPanelStyles = `
|
|
|
579
580
|
.git-panel .git-stale { border: 1px solid var(--pi-warning-border); border-radius: 999px; color: var(--pi-warning); padding: 1px 6px; font-size: 12px; }
|
|
580
581
|
.git-panel .git-error { flex: 0 0 auto; margin: 8px; border: 1px solid var(--pi-danger); border-radius: 7px; color: var(--pi-danger); padding: 8px; }
|
|
581
582
|
.git-panel .git-split { flex: 1 1 auto; min-height: 0; display: grid; grid-template-rows: minmax(160px, 34%) minmax(0, 1fr); }
|
|
583
|
+
/* With nothing selected there is no diff to show, so the list takes the
|
|
584
|
+
panel rather than sitting above an empty pane. */
|
|
585
|
+
.git-panel .git-split.list-only { grid-template-rows: minmax(0, 1fr) 0; }
|
|
586
|
+
.git-panel .git-split.list-only .git-viewer { display: none; }
|
|
582
587
|
.git-panel .git-file-list { min-height: 0; overflow: auto; border-bottom: 1px solid var(--pi-border); padding: 6px; }
|
|
583
588
|
.git-panel .git-row { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 4px; width: 100%; border: 0; border-radius: 5px; background: transparent; text-align: left; padding: 4px 6px 4px calc(6px + var(--depth, 0) * 14px); }
|
|
584
589
|
.git-panel .git-row:hover, .git-panel .git-row.is-selected { background: var(--pi-selection-bg); }
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// Generated from pi-web-plugins/git/browser/gitSplitLayout.ts. Do not edit directly.
|
|
2
|
+
/**
|
|
3
|
+
* Which panes the git panel's split should show.
|
|
4
|
+
*
|
|
5
|
+
* The split gave the file list a third of the height and the diff viewer the
|
|
6
|
+
* rest, at every size. With nothing selected there is no second pane to show,
|
|
7
|
+
* so that left a short list above a large empty area - two stretches of empty
|
|
8
|
+
* space stacked on top of each other, most visible on a phone.
|
|
9
|
+
*/
|
|
10
|
+
export function gitSplitClass(selectedDiffPath) {
|
|
11
|
+
return selectedDiffPath === undefined ? "git-split list-only" : "git-split";
|
|
12
|
+
}
|
package/package.json
CHANGED