Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

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

Gabe Kangas56fdb1c77a51
diff --git a/web/components/modals/BrowserNotifyModal/BrowserNotifyModal.tsx b/web/components/modals/BrowserNotifyModal/BrowserNotifyModal.tsx
index 5fbe554773..db14593b34 100644
--- a/web/components/modals/BrowserNotifyModal/BrowserNotifyModal.tsx
+++ b/web/components/modals/BrowserNotifyModal/BrowserNotifyModal.tsx
@@ -60,7 +60,7 @@ const PermissionPopupPreview: FC<PermissionPopupPreviewProps> = ({ start }) => (
const NotificationsEnabled = () => (
<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
permissions for this site and turn off notifications.
<a href="https://owncast.online/docs/notifications"> Learn more.</a>
diff --git a/web/components/ui/Modal/Modal.module.scss b/web/components/ui/Modal/Modal.module.scss
index 2d29dae8ab..4d7355a897 100644
--- a/web/components/ui/Modal/Modal.module.scss
+++ b/web/components/ui/Modal/Modal.module.scss
@@ -10,5 +10,10 @@
padding: 2vw;
background-color: var(--theme-color-components-modal-content-background);
color: var(--theme-color-components-modal-content-text);
-}
+ h1:first-child,
+ h2:first-child,
+ h3:first-child {
+ margin-top: unset;
+ }
+}