Commit graph

155 commits

Author SHA1 Message Date
Aziz Rmadi
45436162bd
Hide chat button on mobile when chat is disabled (#3616) 2024-03-05 21:58:17 -08:00
Pranav Joglekar
b8ffe5be16
fix: prevent floating mobile action menu button (#3383)
the absolute positioned mobile action button was attached
to the body causing it to float during scrolling. Now, we wrap
the action buttons inside a relative div so that they are attached
to this div which prevents them from scrolling with page
Fixes #3271

Co-authored-by: Gabe Kangas <gabek@real-ity.com>
2023-10-24 21:58:36 -07:00
Gabe Kangas
6e3f5d3e9f
fix: fix positioning of mobile buttons menu. Closes #3216 (#3217) 2023-07-28 02:20:04 +00:00
Gabe Kangas
16db7825c9
fix: external actions were assuming all actions are urls. Fixes #3213 2023-07-26 11:17:47 -07:00
Gabe Kangas
777da508ed
fix(chat): fix chat not using the correct messages selector. (#3180)
* fix(chat): fix chat not using the correct messages selector. Closes #3166

* fix(chat): initial state was incorrect when hiding/showing messages
2023-07-17 20:48:59 +00:00
janWilejan
3f4887020d
Add resize handle to chat (#3157)
* add resize handle to chat

* Add chat resize functionality

* window resize only causes chat resize on desktop

* fix parseFloat invocation

* desktop is optional attribute of ChatContainer

---------

Co-authored-by: janWilejan <>
2023-07-10 23:00:28 -07:00
janWilejan
2d72935564
change chat from a sidebar to a column (#3113)
* change chat from a sidebar to a column

Using a 2-column layout prevents the chat scrollbar from overlapping the page
scrollbar. Also, it no longer needs to calculate extra padding for elements.

* remove unused Sidebar.tsx

* fix css for chat column

* re-center "Go to last message" button

* main content column always uses maximum height

* lint

* re-hide scrollbars in mainContent on chromium

* fix chat column width when input is over-full

* chat is only fixed-width in desktop

---------

Co-authored-by: janWilejan <>
2023-07-09 14:07:35 -07:00
Gabe Kangas
dc2c46e2a4
fix(ui): fix for exception when chat is disabled. Closes #3138 2023-07-05 14:02:39 -07:00
Gabe Kangas
00a5fb8dc8
fix: pass username and instance url to external actions. Fixes #3130 2023-07-04 12:14:21 -07:00
Gabe Kangas
6805a7c1db
feat(ui): more improvements to initial loading state 2023-06-28 07:53:06 -07:00
Gabe Kangas
d60289c8bc
feat(ui): improve loading state 2023-06-27 22:52:23 -07:00
Gabe Kangas
e7f464a10f
fix(ui): fix not being able to disable browser notifications. Closes #3115 2023-06-27 16:40:35 -07:00
Gabe Kangas
1ea9a548e1
fix(ui): fallback to an empty array. Closes #3116 2023-06-27 16:19:16 -07:00
janWilejan
c563742856
Chat popup (#3098)
* add pop out chat button

* add button to close chat popup

* chat is hidden on main interface when a popup chat is open

* NameChangeEvent renames clients with the given id

if you have two or more owncast windows (or pop-out chats) open, changing your
name in 1 client is reflected in all clients.

* replace isChatVisible booleans with chatState enum

* update stories to use ChatState

* fix build tests

---------

Co-authored-by: janWilejan <>
2023-06-26 09:00:27 -07:00
Gabe Kangas
ccb9b5d075
chore: run stylelint on our css files 2023-06-20 20:58:00 -07:00
Gabe Kangas
8a3bae4c30
fix(mobile): bottom section not filling width. Closes #3073 2023-06-14 13:31:18 -07:00
Gabe Kangas
447ab10738
feat: add ios specific push notification instructions
Closes #2992
2023-06-05 21:01:51 -07:00
Gabe Kangas
07db73b084
fix(ui): set offline banner color to be static palette white 2023-06-05 08:55:21 -07:00
Gabe Kangas
15e06b9b2b
fix(mobile): remove extra 20px of padding 2023-05-25 08:20:03 -07:00
gingervitis
29041e6d76
Address chat modal button issues (#3042)
* don't display chat button or modal if isModal is true. dont display the show/hide chat option in the userdropedown for tablet sizes either. tweak chat button styles and make chat button bg the same as the chat component bg color.

* only show chat button if online

* fix(chat): chat should be available through 5min buffer period. Fixes #3044

* fix(test): update mobile test

---------

Co-authored-by: Gabe Kangas <gabek@real-ity.com>
2023-05-23 16:32:35 -07:00
Gabe Kangas
69f217f758
Refactor mobile chat into modal (#3038)
* feat(mobile): refactor mobile chat into modal

- Make page always scrollable
- Move mobile chat into a standalone modal

* fix(test): split out mobile browser test specs

* fix(mobile): force chat button to render on top of footer

* fix: some small updates from review

* fix: hide/show hide chat menu option based on width

* fix: chat button icon getting cut off

* chore(tests): add browser tests for mobile chat modal

* chore(tests): add story for ChatModal component

* fix(test): quiet shellcheck

* fix: remove unused import

* fix(tests): silence storybook linting warning

* fix(ui): reposition chat modal button icon with transform
2023-05-22 18:56:44 -07:00
gingervitis
4703a64878
address doublescroll #3028 (#3035)
* quick fix for mobile menu button overlap

* - use new dynamic vh css prop to handle ios safari double scrolling
- only force tabs height when online

* cleanup

* add comment
2023-05-21 14:11:53 -07:00
Gabe Kangas
e50b23d081
Cleanup unused Javascript (#3027)
* chore(js): be stricter about dead code warnings

* chore(js): remove dead code and unused exports

* rebase

* chore: remove unused files

* chore(deps): remove unused prop-types dep

* chore(js): remove unused function

* chore(deps): remove + check unused deps

* chore(js): remove unused exports. Closes #3036
2023-05-20 21:15:25 -07:00
gingervitis
c2a0295a0c
Address some layout issues with odd content spacing on mobile, and footer position (#3022)
* - set vars for player container height and status bar height
- use them to calculate mobile top spacing to adjust for tab content positioning

* give main content section a min height, place footer absolutely at bottom; rm all the fixed footer styling

* cleanup; restructure tabbed display logic and css a bit

* Prettified Code!

* cleanup

* fix(story): footer story needs to be wrapped in RecoilRoot if it is to use Recoil

* revert adding footer to mobile about section

* prevent double scrolling

---------

Co-authored-by: gingervitis <gingervitis@users.noreply.github.com>
Co-authored-by: Gabe Kangas <gabek@real-ity.com>
2023-05-18 12:13:26 -07:00
Gabe Kangas
e694d76ad2
fix(mobile): toggle tablet content layout based on online state. Closes #3003 (#3007) 2023-05-12 07:00:04 -07:00
Gabe Kangas
23d29ac2ae
fix(ui): use showChat selector for dynamicPadding logic 2023-05-06 20:36:17 -07:00
Gabe Kangas
4fa960be8b
fix(ui): fix dynamic padding not taking disabled chat state into account 2023-05-06 20:06:39 -07:00
Gabe Kangas
9e19af636e
fix(mobile): adjust padding for bottom mobile content. Closes #2986 2023-05-04 21:48:09 -07:00
Gabe Kangas
6982ce54b7
fix: increase line height of headers in page content 2023-05-04 21:40:53 -07:00
Gabe Kangas
c79834a752
fix(mobile): do not show action menu if there are no actions. Closes #2985 2023-05-04 21:37:52 -07:00
Gabe Kangas
7d6fa8d1ac
fix(ui): add margin under page content. Closes #2963 2023-05-04 18:11:06 -07:00
Nathan
cd74c42967
fix: #2957 Portrait Buttons Make Action Buttons Wrap (#2965)
Co-authored-by: thisProjects <wibbet@wobbet.com>
2023-04-28 12:09:00 -07:00
Gabe Kangas
fbffb58c0c
fix(ui): vh->vw for content margin 2023-04-26 21:42:30 -07:00
Gabe Kangas
97fb5a80d0
fix(ui): restore page margin and background color. Closes #2959 2023-04-26 21:27:35 -07:00
Gabe Kangas
12d321b097
fix(mobile): remove extra margin around tabbed content 2023-04-26 21:24:31 -07:00
Gabe Kangas
d2afeef0e4
fix(embed): fix post-pr #2863 merge offline banner text color 2023-04-26 15:39:58 -07:00
Nathan
32c3f6a9b6
fix: #2668 Page Vertical Spacing Issues (#2863)
* fix: #2668 Page Vertical Spacing Issues

* Update test to reflect mobile work

* chore: refactor action buttons

---------

Co-authored-by: thisProjects <wibbet@wobbet.com>
Co-authored-by: Gabe Kangas <gabek@real-ity.com>
2023-04-26 15:31:23 -07:00
Gabe Kangas
bb9cc28596
fix(embed): change text color of offline banner. Closes #2953 2023-04-26 09:40:17 -07:00
gingervitis
44483a45d3
some webv2 UI polish (#2940)
* style tweaks for Action Button, UserMenu, Modal

* a bunch of misc polish; some around chat

* Prettified Code!

* cleanup

* fix formatting

* Reduce content padding a bit

* some stylesheet cleanup

* fix action button sizing

* Remove action button height completely

---------

Co-authored-by: gingervitis <gingervitis@users.noreply.github.com>
Co-authored-by: Gabe Kangas <gabek@real-ity.com>
2023-04-24 10:58:57 -07:00
Gabe Kangas
90d2739afd
fix(mobile): fix action bar button not appearing. Closes #2938 2023-04-22 19:57:24 -07:00
Gabe Kangas
057b93b1b2
fix(web): improve spacing in custom bottom section with headers 2023-04-15 17:50:52 -07:00
Gabe Kangas
0f58f8c0fe
Banned and chat disconnected states will hide chat. Closes #2764 2023-03-13 15:25:05 -07:00
Gabe Kangas
7e7be00b12
Guard against mobile exception. Closes #2793 2023-03-13 13:08:57 -07:00
Gabe Kangas
cd0f92f496
Add error boundary to DesktopContent. For #2811 2023-03-12 23:11:20 -07:00
Gabe Kangas
593a7faa36
Add error boundaries to MobileContent. For #2811 2023-03-12 21:53:17 -07:00
Gabe Kangas
aa05ad6369
Fix loading state when chat is disabled in mobile. Closes #2753 2023-03-05 17:47:59 -08:00
Gabe Kangas
4a0476b237
Add support for disabled chat state in the chat input field. Closes #2761 2023-03-01 16:22:10 -08:00
Gabe Kangas
38a52c501c
Do not show custom page content sections if it is empty. Closes #2752 2023-02-27 17:39:53 -08:00
Gabe Kangas
8b8f221eb4
Show streamTitle in header if set. Closes #2720 2023-02-22 18:52:25 -08:00
Gabe Kangas
9744d4680c
Fix disabled browser notifications showing up. Closes #2726 2023-02-22 18:04:11 -08:00