Skip to content

Commit

Permalink
Merge pull request #83 from shreyas1434shinde/main
Browse files Browse the repository at this point in the history
Issue #PS-2322 fix: Workspace UI improvements and Fixes
  • Loading branch information
itsvick authored Nov 12, 2024
2 parents 272371a + af737ad commit 4d7ebe1
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 21 deletions.
2 changes: 1 addition & 1 deletion src/components/V1-Player/V1Player.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const V1Player = ({ playerConfig }: PlayerProps) => {
title="Content Player"
src="/content/preview/preview.html?webview=true"
aria-label="Content Player"
style={{ width: '100%', height: '100%', border: 'none' }}
style={{ width: '100%', height: '600px', border: 'none' }}
></iframe>
</div>
);
Expand Down
49 changes: 30 additions & 19 deletions src/pages/workspace/content/review/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ const ReviewContentSubmissions = () => {
borderRadius: "16px",
padding: 2,
backgroundColor: "white",
// mb: 2,

}}
>
<Typography
Expand Down Expand Up @@ -215,7 +215,7 @@ const ReviewContentSubmissions = () => {
</Box>
</Grid>
<Grid item xs={4}>
<CardContent
<Box
sx={{
border: "1px solid #ccc",
borderRadius: "16px",
Expand Down Expand Up @@ -363,26 +363,37 @@ const ReviewContentSubmissions = () => {
{formatDate(contentDetails.lastUpdatedOn)}
</Box>
</Box>
</CardContent>
</Box>
</Grid>
</Grid>

<CardActions
disableSpacing
sx={{ display: "flex", justifyContent: "flex-end", mt:2, mb: 2 }}
>
<Button
variant="contained"
color="primary"
onClick={handlePublish}
sx={{ marginRight: 1 }}
>
Publish
</Button>
<Button variant="contained" color="primary" onClick={handleReject}>
Request Changes
</Button>
</CardActions>
<Box
sx={{
display: "flex",
justifyContent: "flex-end",
mt: 2,
mb: 2,
padding: "8px", // Add padding to avoid overlap
borderRadius: "16px", // Match the surrounding box's border radius
}}
>
<Button
variant="contained"
color="primary"
onClick={handlePublish}
sx={{ marginRight: 1, minWidth: "120px" }} // Ensure the button has enough width
>
Publish
</Button>
<Button
variant="contained"
color="primary"
onClick={handleReject}
sx={{ minWidth: "120px" }} // Ensure the button has enough width
>
Request Changes
</Button>
</Box>
</>
) : (
<Typography>No content details available</Typography>
Expand Down
3 changes: 2 additions & 1 deletion src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
}


html, body {
html,
body {
margin: 0;
padding: 0;
}

0 comments on commit 4d7ebe1

Please sign in to comment.