Skip to content

Commit

Permalink
Iphone fix and viewport update (#148)
Browse files Browse the repository at this point in the history
* viweport update

* new field for reviewers

* deploy fix

* v1

* new field for reviewers

* on change fullscreen

* viewport update

* fullscreen check
  • Loading branch information
mluena authored Oct 3, 2024
1 parent 14525b9 commit fd032aa
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Metadata, Viewport } from "next";

import Link from "next/link";

import { Hydrate, dehydrate } from "@tanstack/react-query";
Expand Down
6 changes: 4 additions & 2 deletions client/src/containers/welcome-message/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import { useGetWelcomeMessage } from "@/types/generated/welcome-message";

import { Button } from "@/components/ui/button";
import { Dialog, DialogContent } from "@/components/ui/dialog";
import isEmpty from "lodash-es/isEmpty";

export default function WelcomeMessage() {
const videoRef = useRef<ReactPlayer>(null);
Expand All @@ -35,13 +36,14 @@ export default function WelcomeMessage() {
const handlePlay = () => {
if (!videoRefContainer.current) return;
setPlaying((prev) => !prev);
screenfull?.request(videoRefContainer?.current);
screenfull?.request(videoRefContainer.current);

};

const handleFullscreen = () => {
setFullscreen(screenfull?.isFullscreen);
};

useEffect(() => {
if (screenfull.isEnabled) {
screenfull.on("change", handleFullscreen);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@
},
"review_decision_details": {
"type": "text"
},
"reviewed_by": {
"type": "string"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@
},
"type": {
"type": "enumeration",
"enum": ["donor", "collaborator"],
"enum": [
"donor",
"collaborator"
],
"required": true
},
"collaborator_edit_suggestions": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@
},
"review_decision_details": {
"type": "text"
},
"reviewed_by": {
"type": "string"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@
},
"review_decision_details": {
"type": "text"
},
"reviewed_by": {
"type": "string"
}
}
}
3 changes: 3 additions & 0 deletions cms/types/generated/contentTypes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -788,6 +788,7 @@ export interface ApiCollaboratorEditSuggestionCollaboratorEditSuggestion
>;
image: Attribute.Media;
review_decision_details: Attribute.Text;
reviewed_by: Attribute.String;
createdAt: Attribute.DateTime;
updatedAt: Attribute.DateTime;
publishedAt: Attribute.DateTime;
Expand Down Expand Up @@ -950,6 +951,7 @@ export interface ApiDatasetEditSuggestionDatasetEditSuggestion
>;
colors: Attribute.JSON;
review_decision_details: Attribute.Text;
reviewed_by: Attribute.String;
createdAt: Attribute.DateTime;
updatedAt: Attribute.DateTime;
publishedAt: Attribute.DateTime;
Expand Down Expand Up @@ -1407,6 +1409,7 @@ export interface ApiProjectEditSuggestionProjectEditSuggestion
'api::project.project'
>;
review_decision_details: Attribute.Text;
reviewed_by: Attribute.String;
createdAt: Attribute.DateTime;
updatedAt: Attribute.DateTime;
publishedAt: Attribute.DateTime;
Expand Down

0 comments on commit fd032aa

Please sign in to comment.