Skip to content

Commit

Permalink
chore: long token wrapping temp fix
Browse files Browse the repository at this point in the history
  • Loading branch information
x86y committed Oct 17, 2023
1 parent 8ed0532 commit b32536d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Beacon/Views/HistoryView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ struct HistoryView: View {
let isDarkTheme = (scheme == .dark)
let col = historyItem.lang == Language.k ? tokenToColorK(token.type, isDarkTheme) : tokenToColor(token.type)
Text(token.value)
.lineLimit(1) // HACK to stop long tokens from messing alignment
.foregroundColor(col)
.font(Font.custom("BQN386 Unicode", size: 18))
.onTapGesture {
Expand Down

0 comments on commit b32536d

Please sign in to comment.