💄(frontend) hide the ProConnect button on narrow viewports

Hide the ProConnect button (only used by the Dinum frontend) when
the device viewport is not wide enough to display it cleanly, so it
does not overflow or break the layout on smaller screens.
This commit is contained in:
lebaudantoine
2026-08-10 15:32:59 +02:00
committed by aleb_the_flash
parent 7461cd28ce
commit c53a2f8af4
2 changed files with 8 additions and 1 deletions
+1
View File
@@ -20,6 +20,7 @@ and this project adheres to
- ♻️(frontend) encapsulate error tracking behind a telemetry module
- ♻️(frontend) encapsulate PostHog capture calls in the telemetry module
- 🔧(frontend) sync persisted device ids with the actual selected devices
- 💄(frontend) hide the ProConnect button on narrow viewports
### Fixed
+7 -1
View File
@@ -169,7 +169,13 @@ export const Header = () => {
!isTermsOfService &&
!loginButtonDisabledByUrl && (
<>
<LoginButton proConnectHint={false} />
<div
className={css({
display: { base: 'none', xsm: 'block' },
})}
>
<LoginButton proConnectHint={false} />
</div>
<LoginHint />
</>
)}