Skip to content

Commit

Permalink
fix browser's default title shown in Safari
Browse files Browse the repository at this point in the history
  • Loading branch information
theskumar committed Jul 11, 2023
1 parent aaa2250 commit 28cddec
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions hypha/apply/funds/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,10 @@ class SubmissionsTable(tables.Table):
'a': {
'data-tippy-content': lambda record: record.title,
'data-tippy-placement': 'top',
'class': 'truncate inline-block w-[calc(100%-2rem)]',

# Use after:content-[''] after:block to hide the default browser tooltip on Safari
# https://stackoverflow.com/a/43915246
'class': "truncate inline-block w-[calc(100%-2rem)] after:content-[''] after:block",
}
},
)
Expand Down Expand Up @@ -572,7 +575,10 @@ class ReviewerLeaderboardDetailTable(tables.Table):
'a': {
'data-tippy-content': lambda record: record.submission.title,
'data-tippy-placement': 'top',
'class': 'truncate inline-block w-[calc(100%-2rem)]',

# Use after:content-[''] after:block to hide the default browser tooltip on Safari
# https://stackoverflow.com/a/43915246
'class': 'truncate inline-block w-[calc(100%-2rem)] after:content-[''] after:block',
}
},
)
Expand Down

0 comments on commit 28cddec

Please sign in to comment.