diff --git a/Muxy/Views/Terminal/RichInputSidePanel.swift b/Muxy/Views/Terminal/RichInputSidePanel.swift index 194785da..cda25676 100644 --- a/Muxy/Views/Terminal/RichInputSidePanel.swift +++ b/Muxy/Views/Terminal/RichInputSidePanel.swift @@ -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( @@ -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")