This commit is contained in:
Andras Schmelczer 2026-05-09 10:25:27 +01:00
parent dd9f00b105
commit 584b053a23
7 changed files with 36 additions and 43 deletions

View file

@ -119,10 +119,7 @@ export function DualHistogram({
})}
</div>
{showMeanMarker && (
<div
className="pointer-events-none absolute inset-y-0"
style={{ left: `${meanPct}%` }}
>
<div className="pointer-events-none absolute inset-y-0" style={{ left: `${meanPct}%` }}>
<div
className="absolute top-0 max-w-[7rem] truncate rounded-sm border border-warm-300 bg-white px-1 py-0.5 text-[9px] font-medium leading-none text-warm-600 shadow-sm dark:border-warm-600 dark:bg-navy-900 dark:text-warm-300"
style={meanLabelStyle}

View file

@ -33,8 +33,9 @@ export function FeatureActions({
return (
<div className="flex items-center gap-0.5 shrink-0">
{feature.detail && onShowInfo && (
showText ? (
{feature.detail &&
onShowInfo &&
(showText ? (
<IconButton onClick={() => onShowInfo(feature)} title={t('filters.aboutData')} size="md">
<InfoIcon className="w-4 h-4" />
</IconButton>
@ -42,8 +43,7 @@ export function FeatureActions({
<IconButton onClick={() => onShowInfo(feature)} title={t('filters.aboutData')} size="md">
<InfoIcon className="w-5 h-5 md:w-3.5 md:h-3.5" />
</IconButton>
)
)}
))}
{showText ? (
<IconButton
onClick={() => onTogglePin(callbackName)}

View file

@ -97,8 +97,8 @@ export default function Header({
const [copied, setCopied] = useState(false);
const [sharing, setSharing] = useState(false);
const [menuOpen, setMenuOpen] = useState(false);
const [isDashboardTabletSidebarWidth, setIsDashboardTabletSidebarWidth] = useState(() =>
window.matchMedia(DASHBOARD_TABLET_SIDEBAR_QUERY).matches
const [isDashboardTabletSidebarWidth, setIsDashboardTabletSidebarWidth] = useState(
() => window.matchMedia(DASHBOARD_TABLET_SIDEBAR_QUERY).matches
);
const useSidebarNav = isMobile || (activePage === 'dashboard' && isDashboardTabletSidebarWidth);