mirror of
https://github.com/plausible/analytics.git
synced 2024-11-23 03:04:43 +03:00
Re-adds underline to selected top stat (#1849)
This commit is contained in:
parent
199206babc
commit
b686d8bff9
@ -70,9 +70,9 @@ export default class TopStats extends React.Component {
|
||||
(
|
||||
<div className={`px-4 md:px-6 w-1/2 my-4 lg:w-auto group cursor-pointer select-none ${border}`} onClick={() => { updateMetric(METRIC_MAPPING[stat.name]) }} tabIndex={0} title={this.titleFor(stat)}>
|
||||
<div
|
||||
className={`text-xs font-bold tracking-wide text-gray-500 uppercase dark:text-gray-400 whitespace-nowrap flex w-content ${isSelected ? 'text-indigo-700 dark:text-indigo-500 border-indigo-700 dark:border-indigo-500' : 'group-hover:text-indigo-700 dark:group-hover:text-indigo-500'}`}>
|
||||
className={`text-xs font-bold tracking-wide text-gray-500 uppercase dark:text-gray-400 whitespace-nowrap flex w-content ${isSelected ? 'text-indigo-700 dark:text-indigo-500 border-b border-indigo-700 dark:border-indigo-500' : 'group-hover:text-indigo-700 dark:group-hover:text-indigo-500'}`}>
|
||||
{statDisplayName}
|
||||
<span className="hidden sm:inline-block ml-1">{statExtraName}</span>
|
||||
{statExtraName && <span className="hidden sm:inline-block ml-1">{statExtraName}</span>}
|
||||
</div>
|
||||
{ this.renderStat(stat) }
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user