iOS client for Grain grain.social
ios photography atproto
7
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: make description text tappable to expand instead of requiring "more" button

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

+11 -10
+11 -10
Grain/Views/Components/ExpandableDescriptionView.swift
··· 47 47 }) 48 48 }) 49 49 ) 50 + .contentShape(Rectangle()) 51 + .onTapGesture { 52 + if isTruncated, !isExpanded { 53 + withAnimation(.easeInOut(duration: 0.2)) { 54 + isExpanded = true 55 + } 56 + } 57 + } 50 58 51 59 HStack(spacing: 12) { 52 60 if isTruncated, !isExpanded { 53 - Button { 54 - withAnimation(.easeInOut(duration: 0.2)) { 55 - isExpanded = true 56 - } 57 - } label: { 58 - Text("more") 59 - .font(.subheadline) 60 - .foregroundStyle(.tertiary) 61 - } 62 - .buttonStyle(.plain) 61 + Text("more") 62 + .font(.subheadline) 63 + .foregroundStyle(.tertiary) 63 64 } 64 65 65 66 if isForeignLanguage {