style: Adjust player time display width and add line limit in player views for improved readability.
This commit is contained in:
@@ -355,7 +355,8 @@ struct AVPlayerContentView: View {
|
||||
Text(currentTime.durationString)
|
||||
.font(.system(size: 11, weight: .semibold, design: .monospaced))
|
||||
.foregroundColor(.white.opacity(0.9))
|
||||
.frame(width: 45, alignment: .leading)
|
||||
.lineLimit(1)
|
||||
.frame(width: 62, alignment: .leading)
|
||||
|
||||
Slider(
|
||||
value: Binding(
|
||||
@@ -380,7 +381,8 @@ struct AVPlayerContentView: View {
|
||||
Text(duration.durationString)
|
||||
.font(.system(size: 11, weight: .semibold, design: .monospaced))
|
||||
.foregroundColor(.white.opacity(0.6))
|
||||
.frame(width: 45, alignment: .trailing)
|
||||
.lineLimit(1)
|
||||
.frame(width: 62, alignment: .trailing)
|
||||
}
|
||||
.padding(.horizontal, 4)
|
||||
|
||||
|
||||
@@ -1024,7 +1024,8 @@ struct VLCVodPlayerView: View {
|
||||
Text(currentDisplaySeconds.durationString)
|
||||
.font(.system(size: 11, weight: .semibold, design: .monospaced))
|
||||
.foregroundColor(.white.opacity(0.9))
|
||||
.frame(width: 45, alignment: .leading)
|
||||
.lineLimit(1)
|
||||
.frame(width: 62, alignment: .leading)
|
||||
|
||||
Slider(
|
||||
value: Binding(
|
||||
@@ -1049,7 +1050,8 @@ struct VLCVodPlayerView: View {
|
||||
Text(totalDisplayText)
|
||||
.font(.system(size: 11, weight: .semibold, design: .monospaced))
|
||||
.foregroundColor(.white.opacity(0.6))
|
||||
.frame(width: 45, alignment: .trailing)
|
||||
.lineLimit(1)
|
||||
.frame(width: 62, alignment: .trailing)
|
||||
}
|
||||
.padding(.horizontal, 4)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user