Browse Source

fix(web): remove extra spacing above headers in modals

pull/2931/head
Gabe Kangas 2 years ago
parent
commit
74bdab81a3
No known key found for this signature in database
GPG Key ID: 4345B2060657F330
  1. 2
      web/components/modals/BrowserNotifyModal/BrowserNotifyModal.tsx
  2. 7
      web/components/ui/Modal/Modal.module.scss

2
web/components/modals/BrowserNotifyModal/BrowserNotifyModal.tsx

@ -60,7 +60,7 @@ const PermissionPopupPreview: FC<PermissionPopupPreviewProps> = ({ start }) => (
const NotificationsEnabled = () => ( const NotificationsEnabled = () => (
<div> <div>
<Title>Notifications are enabled</Title> <Title level={2}>Notifications are enabled</Title>
To disable push notifications from {window.location.hostname.toString()} access your browser To disable push notifications from {window.location.hostname.toString()} access your browser
permissions for this site and turn off notifications. permissions for this site and turn off notifications.
<a href="https://owncast.online/docs/notifications"> Learn more.</a> <a href="https://owncast.online/docs/notifications"> Learn more.</a>

7
web/components/ui/Modal/Modal.module.scss

@ -10,5 +10,10 @@
padding: 2vw; padding: 2vw;
background-color: var(--theme-color-components-modal-content-background); background-color: var(--theme-color-components-modal-content-background);
color: var(--theme-color-components-modal-content-text); color: var(--theme-color-components-modal-content-text);
}
h1:first-child,
h2:first-child,
h3:first-child {
margin-top: unset;
}
}

Loading…
Cancel
Save