Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions Muxy/Views/Terminal/RichInputSidePanel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ struct RichInputSidePanel: View {
)
.frame(maxWidth: .infinity, maxHeight: .infinity)
.background(MuxyTheme.bg)
.overlay(alignment: .topLeading) {
if state.text.isEmpty {
placeholder
}
}
if !state.fileAttachments.isEmpty {
Rectangle().fill(MuxyTheme.border).frame(height: 1)
AttachmentChipsView(
Expand Down Expand Up @@ -82,6 +87,15 @@ struct RichInputSidePanel: View {
return CGFloat(bounded)
}

private var placeholder: some View {
Text("Type something...")
.font(.system(size: clampedFontSize))
.foregroundStyle(MuxyTheme.fgMuted.opacity(0.6))
.padding(.horizontal, 12)
.padding(.vertical, 10)
.allowsHitTesting(false)
}

private var header: some View {
HStack(spacing: 8) {
Image(systemName: "keyboard")
Expand Down
Loading