ui: tidy tables, links, and hide redundant voice wake forwarder
This commit is contained in:
@@ -135676,7 +135676,7 @@ var init_katex = __esmMin((() => {
|
||||
}));
|
||||
|
||||
//#endregion
|
||||
//#region node_modules/.pnpm/marked@16.4.2/node_modules/marked/lib/marked.esm.js
|
||||
//#region node_modules/.pnpm/@mariozechner+mini-lit@0.2.1_lit@3.3.1_tailwindcss@4.1.17/node_modules/@mariozechner/mini-lit/node_modules/marked/lib/marked.esm.js
|
||||
/**
|
||||
* marked v16.4.2 - a markdown parser
|
||||
* Copyright (c) 2018-2025, MarkedJS. (MIT License)
|
||||
|
||||
@@ -101,7 +101,9 @@ struct SessionsSettings: View {
|
||||
Text(row.key)
|
||||
.font(.body.weight(.semibold))
|
||||
HStack(spacing: 6) {
|
||||
SessionKindBadge(kind: row.kind)
|
||||
if row.kind != .direct {
|
||||
SessionKindBadge(kind: row.kind)
|
||||
}
|
||||
if !row.flagLabels.isEmpty {
|
||||
ForEach(row.flagLabels, id: \.self) { flag in
|
||||
Badge(text: flag)
|
||||
@@ -110,17 +112,17 @@ struct SessionsSettings: View {
|
||||
}
|
||||
}
|
||||
}
|
||||
.width(170)
|
||||
.width(220)
|
||||
|
||||
TableColumn("Updated", value: \.ageText)
|
||||
.width(80)
|
||||
.width(70)
|
||||
|
||||
TableColumn("Tokens") { row in
|
||||
Text(row.tokens.summary)
|
||||
.font(.caption)
|
||||
.foregroundStyle(.secondary)
|
||||
}
|
||||
.width(210)
|
||||
.width(170)
|
||||
|
||||
TableColumn("Model") { row in
|
||||
Text(row.model ?? "—")
|
||||
|
||||
@@ -204,6 +204,7 @@ private struct ToolRow: View {
|
||||
let tool: ToolEntry
|
||||
@State private var state: InstallState = .checking
|
||||
@State private var statusMessage: String?
|
||||
@State private var linkHovering = false
|
||||
|
||||
private enum Layout {
|
||||
// Ensure progress indicators and buttons occupy the same space so the row doesn't shift.
|
||||
@@ -214,8 +215,13 @@ private struct ToolRow: View {
|
||||
VStack(alignment: .leading, spacing: 6) {
|
||||
HStack(alignment: .top, spacing: 10) {
|
||||
VStack(alignment: .leading, spacing: 4) {
|
||||
Link(self.tool.name, destination: self.tool.url)
|
||||
.font(.headline)
|
||||
Link(destination: self.tool.url) {
|
||||
Text(self.tool.name)
|
||||
.font(.headline)
|
||||
.underline(self.linkHovering, color: .accentColor)
|
||||
}
|
||||
.foregroundColor(.accentColor)
|
||||
.onHover { self.linkHovering = $0 }
|
||||
Text(self.tool.description)
|
||||
.font(.subheadline)
|
||||
.foregroundStyle(.secondary)
|
||||
|
||||
@@ -60,20 +60,6 @@ struct VoiceWakeSettings: View {
|
||||
self.micPicker
|
||||
self.levelMeter
|
||||
|
||||
if self.state.connectionMode == .remote {
|
||||
VoiceWakeForwardSection(
|
||||
enabled: Binding.constant(true),
|
||||
target: self.$state.remoteTarget,
|
||||
identity: self.$state.remoteIdentity,
|
||||
command: self.$state.voiceWakeForwardCommand,
|
||||
showAdvanced: self.$showForwardAdvanced,
|
||||
status: self.$forwardStatus,
|
||||
onTest: { Task { await self.checkForwardConnection() } },
|
||||
onChange: self.forwardConfigChanged,
|
||||
showToggle: false,
|
||||
title: "Voice Wake uses remote host",
|
||||
subtitle: "SSH uses your remote Clawdis settings.")
|
||||
}
|
||||
|
||||
VoiceWakeTestCard(
|
||||
testState: self.$testState,
|
||||
|
||||
Reference in New Issue
Block a user