mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Use marquee text on audio player for long titles/info sections
This commit is contained in:
parent
ea7edc087c
commit
d77f893e06
1 changed files with 4 additions and 17 deletions
|
|
@ -210,28 +210,15 @@ public struct MiniPlayer: View {
|
|||
Spacer()
|
||||
|
||||
if expanded {
|
||||
Text(itemAudioProperties.title)
|
||||
.lineLimit(1)
|
||||
.font(expanded ? .appTitle : .appCallout)
|
||||
.lineSpacing(1.25)
|
||||
Marquee(text: itemAudioProperties.title, font: UIFont(name: "Inter-Regular", size: 22)!)
|
||||
.foregroundColor(.appGrayTextContrast)
|
||||
.frame(maxWidth: .infinity, alignment: expanded ? .center : .leading)
|
||||
.matchedGeometryEffect(id: "ArticleTitle", in: animation)
|
||||
.onTapGesture {
|
||||
viewArticle()
|
||||
}
|
||||
|
||||
HStack {
|
||||
Spacer()
|
||||
if let byline = itemAudioProperties.byline {
|
||||
Text(byline)
|
||||
.lineLimit(1)
|
||||
.font(.appCallout)
|
||||
.lineSpacing(1.25)
|
||||
.foregroundColor(.appGrayText)
|
||||
.frame(alignment: .trailing)
|
||||
}
|
||||
Spacer()
|
||||
if let byline = itemAudioProperties.byline {
|
||||
Marquee(text: byline, font: UIFont(name: "Inter-Regular", size: 16)!)
|
||||
.foregroundColor(.appGrayText)
|
||||
}
|
||||
|
||||
Slider(value: $audioController.timeElapsed,
|
||||
|
|
|
|||
Loading…
Reference in a new issue