mirror of
https://github.com/plausible/analytics.git
synced 2024-12-27 19:47:26 +03:00
Stop content shifting on page
This commit is contained in:
parent
b686d8bff9
commit
f6f78cf418
@ -70,7 +70,7 @@ 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-b 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 border-b ${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 border-transparent'}`}>
|
||||
{statDisplayName}
|
||||
{statExtraName && <span className="hidden sm:inline-block ml-1">{statExtraName}</span>}
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user