codehost 0.20.2 → 0.20.3

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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [0.20.3](https://github.com/snomiao/codehost/compare/v0.20.2...v0.20.3) (2026-06-12)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **web:** stop wasting wide screens — workspace cards and checkout links flow into grid columns ([3e4b41c](https://github.com/snomiao/codehost/commit/3e4b41c70f111aeff015ba1e50ae687e98d9d5eb))
7
+
1
8
  ## [0.20.2](https://github.com/snomiao/codehost/compare/v0.20.1...v0.20.2) (2026-06-11)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codehost",
3
- "version": "0.20.2",
3
+ "version": "0.20.3",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -862,6 +862,9 @@ export function Discovery() {
862
862
  </header>
863
863
 
864
864
  <main style={styles.main}>
865
+ {/* Inputs stay at a readable measure; the workspace grid below uses
866
+ the full width. */}
867
+ <div style={styles.controls}>
865
868
  {resolving && (
866
869
  <p style={{ color: "#dcb67a", marginBottom: 12 }}>
867
870
  Looking for <code style={styles.code}>{resolving}</code> in your rooms…{" "}
@@ -963,6 +966,7 @@ export function Discovery() {
963
966
  {ghError && <p style={styles.tokenError}>{ghError}</p>}
964
967
  </>
965
968
  )}
969
+ </div>
966
970
 
967
971
  <div style={styles.listHead}>
968
972
  <h2 style={styles.h2}>Workspaces</h2>
@@ -1106,7 +1110,11 @@ const styles: Record<string, React.CSSProperties> = {
1106
1110
  brand: { fontFamily: "monospace", fontWeight: 700, color: "#fff" },
1107
1111
  dim: { color: "#888", fontSize: 12 },
1108
1112
  status: { fontSize: 12 },
1109
- main: { flex: 1, overflow: "auto", padding: "20px 24px", maxWidth: 760, width: "100%", margin: "0 auto", boxSizing: "border-box" },
1113
+ // Wide cap + per-host card GRID below: a 4K monitor gets several columns of
1114
+ // workspaces instead of one skinny 760px strip. Inputs keep a readable
1115
+ // measure via `controls`.
1116
+ main: { flex: 1, overflow: "auto", padding: "20px 24px", maxWidth: 1560, width: "100%", margin: "0 auto", boxSizing: "border-box" },
1117
+ controls: { maxWidth: 760 },
1110
1118
  tokenForm: { display: "flex", alignItems: "center", gap: 8, marginBottom: 8 },
1111
1119
  tokenHint: { margin: "0 0 20px", fontSize: 12, color: "#888" },
1112
1120
  tokenError: { margin: "0 0 20px", fontSize: 12, color: "#f48771" },
@@ -1138,13 +1146,22 @@ const styles: Record<string, React.CSSProperties> = {
1138
1146
  border: "1px solid #3d3d3d", background: "transparent", color: "#9aa4af", cursor: "pointer",
1139
1147
  },
1140
1148
  idLine: { fontFamily: "monospace", fontSize: 11, color: "#666", marginTop: 6 },
1141
- wsRow: { display: "flex", flexDirection: "column", alignItems: "flex-start", gap: 3, marginTop: 8 },
1149
+ // Workspace links flow into columns on wide screens (a busy root daemon can
1150
+ // advertise 50+ checkouts — a single column wasted the whole viewport).
1151
+ wsRow: {
1152
+ display: "grid", gridTemplateColumns: "repeat(auto-fill, minmax(280px, 1fr))",
1153
+ gap: "2px 14px", marginTop: 8,
1154
+ },
1142
1155
  wsLink: {
1143
1156
  fontFamily: "monospace", fontSize: 12, padding: "2px 0", border: "none", background: "transparent",
1144
1157
  color: "#75beff", cursor: "pointer", textAlign: "left",
1145
1158
  },
1146
1159
  code: { background: "#252525", padding: "2px 6px", borderRadius: 4, fontFamily: "monospace", fontSize: 12 },
1147
- list: { listStyle: "none", margin: "0 0 14px", padding: 0, display: "flex", flexDirection: "column", gap: 8 },
1160
+ list: {
1161
+ listStyle: "none", margin: "0 0 14px", padding: 0,
1162
+ display: "grid", gridTemplateColumns: "repeat(auto-fill, minmax(360px, 1fr))", gap: 8,
1163
+ alignItems: "start",
1164
+ },
1148
1165
  hostHead: { display: "flex", alignItems: "baseline", gap: 10, margin: "0 0 8px" },
1149
1166
  hostName: { fontSize: 13, fontWeight: 600, color: "#dcdcaa", fontFamily: "monospace" },
1150
1167
  agentRow: { display: "flex", flexWrap: "wrap", gap: 6, margin: "0 0 8px" },