Skip to content

Commit

Permalink
added participants sidebar close on video select for mobile devices
Browse files Browse the repository at this point in the history
  • Loading branch information
darylbg committed Sep 10, 2023
1 parent 4b46e52 commit af5ca0f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,7 @@ function App() {
setSidebarToggle("75%");
} else {
setSidebarToggle("0%");
}

}
};

const handleSidebarToggleOff = (e) => {
Expand All @@ -118,6 +117,10 @@ function App() {
const selectedId = e.currentTarget.getAttribute("data-id");
setVideoId(selectedId);
setIsVideoVisible(true);

if (viewportWidth < 760) {
setSidebarToggle("100%");
}
};

const handleVideoViewRemove = (e) => {
Expand Down
2 changes: 1 addition & 1 deletion src/sections/Participants.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function Participants({
videoNameValue,
setVideoNameValue,
toggleVideoView,
handleDateFormat
handleDateFormat,
}) {
const [searchResults, setSearchResults] = useState([]);
const [inputValue, setInputValue] = useState("");
Expand Down

0 comments on commit af5ca0f

Please sign in to comment.