Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
hide user name in user dropdown on mobile (#2512)
André Rusakow1f1a16938773
diff --git a/web/components/common/UserDropdown/UserDropdown.module.scss b/web/components/common/UserDropdown/UserDropdown.module.scssindex 0ac78eb410..f68810c586 100644--- a/web/components/common/UserDropdown/UserDropdown.module.scss+++ b/web/components/common/UserDropdown/UserDropdown.module.scss@@ -1,3 +1,5 @@+@import '../../../styles/mixins.scss';+.root {button {border: none;@@ -7,4 +9,18 @@}}}+ .userIcon {+ @include screen(desktop) {+ margin-right: .5rem;+ }+ }++ .username {+ display: none;++ @include screen(desktop) {+ display: inline;+ }+ }}+diff --git a/web/components/common/UserDropdown/UserDropdown.tsx b/web/components/common/UserDropdown/UserDropdown.tsxindex f40e74c8f4..f1aec9b860 100644--- a/web/components/common/UserDropdown/UserDropdown.tsx+++ b/web/components/common/UserDropdown/UserDropdown.tsx@@ -1,4 +1,4 @@-import { Menu, Dropdown, Button, Space } from 'antd';+import { Menu, Dropdown, Button } from 'antd';import {CaretDownOutlined,EditOutlined,@@ -83,11 +83,9 @@ export const UserDropdown: FC<UserDropdownProps> = ({ username: defaultUsernamereturn (<div id="user-menu" className={`${styles.root}`}><Dropdown overlay={menu} trigger={['click']}>- <Button type="primary" icon={<UserOutlined style={{ marginRight: '.5rem' }} />}>- <Space>- {username}- <CaretDownOutlined />- </Space>+ <Button type="primary" icon={<UserOutlined className={styles.userIcon} />}>+ <span className={styles.username}>{username}</span>+ <CaretDownOutlined /></Button></Dropdown><Modaldiff --git a/web/components/ui/Header/Header.module.scss b/web/components/ui/Header/Header.module.scssindex 15fcb7df8a..36d5b295d4 100644--- a/web/components/ui/Header/Header.module.scss+++ b/web/components/ui/Header/Header.module.scss@@ -33,7 +33,9 @@font-weight: 600;white-space: nowrap;text-overflow: ellipsis;- max-width: 90%;+ width: 70vw;+ overflow: hidden;+ line-height: 1.4;}}}diff --git a/web/components/ui/Header/Header.tsx b/web/components/ui/Header/Header.tsxindex 22e6cd7797..542e8258b8 100644--- a/web/components/ui/Header/Header.tsx+++ b/web/components/ui/Header/Header.tsx@@ -23,7 +23,7 @@ export const Header: FC<HeaderComponentProps> = ({<div id="header-logo" className={styles.logoImage}><OwncastLogo variant="contrast" /></div>- <h1 className={styles.title} id="global-header-text">+ <h1 className={styles.title} id="global-header-text" title={name}>{name}</h1></div>