From de69e69af68d4b3e75f8bcf569fcce0d457abbc3 Mon Sep 17 00:00:00 2001 From: Elhoucine Date: Mon, 8 Jul 2024 14:21:25 +0200 Subject: [PATCH] feat(#vil): mes videos et alignement --- src/components/activities/ActivitySelect.tsx | 16 ++++++-- src/pages/mes-videos.tsx | 39 ++++++++++++++------ 2 files changed, 41 insertions(+), 14 deletions(-) diff --git a/src/components/activities/ActivitySelect.tsx b/src/components/activities/ActivitySelect.tsx index 0f34598b4..bc39302d7 100644 --- a/src/components/activities/ActivitySelect.tsx +++ b/src/components/activities/ActivitySelect.tsx @@ -1,7 +1,7 @@ import React from 'react'; import ChevronRightIcon from '@mui/icons-material/ChevronRight'; -import { Button, CircularProgress } from '@mui/material'; +import { Box, Button, CircularProgress } from '@mui/material'; import { Activities } from './List'; import { ThemeChoiceButton } from 'src/components/buttons/ThemeChoiceButton'; @@ -98,7 +98,17 @@ export const ActivitySelect = ({ value, onChange, onSelect, style, label = 'Sél ) : ( -
+ { } }; + const cellStyles = { + padding: '5px', + margin: 0, + }; + return ( -
-
+ +

{'Mes vidéos'}

{videos.length > 0 ? ( - # - Nom de la vidéo - Lien de la vidéo (URL) - + ({ [theme.breakpoints.only('xs')]: cellStyles })} style={{ fontWeight: 'bold' }}> + # + + ({ [theme.breakpoints.only('xs')]: cellStyles })} style={{ fontWeight: 'bold' }}> + Nom de la vidéo + + ({ [theme.breakpoints.only('xs')]: cellStyles })} style={{ fontWeight: 'bold' }}> + Lien de la vidéo (URL) + + ({ [theme.breakpoints.only('xs')]: cellStyles })} style={{ fontWeight: 'bold' }} align="right"> Actions @@ -74,10 +86,15 @@ const MesVideos = () => { }, }} > - {index + 1} - {video.name} - https://player.vimeo.com/video/{video.id} - + ({ [theme.breakpoints.only('xs')]: cellStyles })}>{index + 1} + ({ [theme.breakpoints.only('xs')]: cellStyles })}>{video.name} + ({ [theme.breakpoints.only('xs')]: cellStyles })}>https://player.vimeo.com/video/{video.id} + ({ [theme.breakpoints.only('xs')]: cellStyles })} + align="right" + padding="none" + style={{ minWidth: '96px' }} + > { {selectedVideo !== null && } - + ); };