Skip to content

Commit

Permalink
Fix the alignment issues revisions timeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Piumal1999 committed Oct 10, 2024
1 parent b724a89 commit 83169c0
Showing 1 changed file with 29 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const classes = {
infoIcon: `${PREFIX}-infoIcon`,
saveButton: `${PREFIX}-saveButton`,
shapeRec: `${PREFIX}-shapeRec`,
shapeCircaleBack: `${PREFIX}-shapeCircaleBack`,
shapeCircleBack: `${PREFIX}-shapeCircleBack`,
shapeInnerComplete: `${PREFIX}-shapeInnerComplete`,
shapeInnerInactive: `${PREFIX}-shapeInnerInactive`,
shapeDottedEnd: `${PREFIX}-shapeDottedEnd`,
Expand Down Expand Up @@ -155,35 +155,35 @@ const Root = styled('div')(({ theme }) => ({
height: 3,
},

[`& .${classes.shapeCircaleBack}`]: {
[`& .${classes.shapeCircleBack}`]: {
backgroundColor: '#E2E2E2',
width: 63,
height: 63,
width: 64,
height: 64,
},

[`& .${classes.shapeInnerComplete}`]: {
backgroundColor: '#095677',
width: 50,
height: 50,
marginTop: 6,
marginLeft: 6.5,
marginTop: 7,
marginLeft: 7,
placeSelf: 'middle',
},

[`& .${classes.shapeInnerInactive}`]: {
backgroundColor: '#BFBFBF',
width: 50,
height: 50,
marginTop: 6,
marginLeft: 6,
marginTop: 7,
marginLeft: 7,
placeSelf: 'middle',
},

[`& .${classes.shapeDottedEnd}`]: {
backgroundColor: '#BFBFBF',
border: '1px dashed #707070',
width: 47,
height: 47,
width: 50,
height: 50,
marginTop: 7,
marginLeft: 7,
placeSelf: 'middle',
Expand All @@ -192,10 +192,10 @@ const Root = styled('div')(({ theme }) => ({
[`& .${classes.shapeDottedStart}`]: {
backgroundColor: '#1CB1BF',
border: '2px solid #ffffff',
width: 47,
height: 47,
marginTop: 8,
marginLeft: 8,
width: 50,
height: 50,
marginTop: 7,
marginLeft: 7,
placeSelf: 'middle',
},

Expand All @@ -209,8 +209,8 @@ const Root = styled('div')(({ theme }) => ({
backgroundColor: '#1CB1BF',
width: 50,
height: 50,
marginTop: 6,
marginLeft: 6.5,
marginTop: 7,
marginLeft: 7,
placeSelf: 'middle',
},

Expand All @@ -223,7 +223,7 @@ const Root = styled('div')(({ theme }) => ({
display: 'flex',
alignItems: 'center',
marginTop: 12,
marginLeft: 115,
marginLeft: 105,
height: '18px',
fontFamily: 'sans-serif',
},
Expand All @@ -242,7 +242,6 @@ const Root = styled('div')(({ theme }) => ({

[`& .${classes.textShape3}`]: {
color: '#38536c',
marginLeft: 70,
},

[`& .${classes.textShape7}`]: {
Expand Down Expand Up @@ -1287,7 +1286,7 @@ export default function Environments() {
className={classes.containerInline}
>
<Grid item className={classes.shapeRec} />
<Grid item className={clsx(classes.shapeCircaleBack, classes.shapeCircle)}>
<Grid item className={clsx(classes.shapeCircleBack, classes.shapeCircle)}>
<Grid
className={clsx(classes.shapeInnerComplete, classes.shapeCircle)}
onMouseEnter={handlePopoverOpen}
Expand Down Expand Up @@ -1332,7 +1331,7 @@ export default function Environments() {
className={classes.containerInline}
>
<Grid item className={classes.shapeRec}/>
<Grid item className={clsx(classes.shapeCircaleBack, classes.shapeCircle)}>
<Grid item className={clsx(classes.shapeCircleBack, classes.shapeCircle)}>
<Grid className={clsx(classes.shapeInnerInactive, classes.shapeCircle)} />
</Grid>
<Grid item className={classes.shapeRecBack} />
Expand All @@ -1343,7 +1342,7 @@ export default function Environments() {
className={classes.containerInline}
>
<Grid item className={classes.shapeRec} />
<Grid item className={clsx(classes.shapeCircaleBack, classes.shapeCircle)}>
<Grid item className={clsx(classes.shapeCircleBack, classes.shapeCircle)}>
<Grid className={clsx(classes.shapeDottedEnd, classes.shapeCircle)} />
</Grid>
</Grid>
Expand All @@ -1353,7 +1352,7 @@ export default function Environments() {
className={classes.containerInline}
>
<Grid item className={classes.shapeRec} />
<Grid item className={clsx(classes.shapeCircaleBack, classes.shapeCircle)}>
<Grid item className={clsx(classes.shapeCircleBack, classes.shapeCircle)}>
{api.advertiseInfo && api.advertiseInfo.advertised ? (
<Grid
className={clsx(classes.shapeDottedStart, classes.shapeCircle)}
Expand All @@ -1380,7 +1379,7 @@ export default function Environments() {
className={classes.containerInline}
>
<Grid item className={classes.shapeRec} />
<Grid item className={clsx(classes.shapeCircaleBack, classes.shapeCircle)}>
<Grid item className={clsx(classes.shapeCircleBack, classes.shapeCircle)}>
{api.advertiseInfo && api.advertiseInfo.advertised ? (
<Grid
className={clsx(classes.shapeDottedStart, classes.shapeCircle)}
Expand Down Expand Up @@ -1423,7 +1422,7 @@ export default function Environments() {
className={classes.containerInline}
>
<Grid item className={classes.shapeRec} />
<Grid item className={clsx(classes.shapeCircaleBack, classes.shapeCircle)}>
<Grid item className={clsx(classes.shapeCircleBack, classes.shapeCircle)}>
<Grid
className={clsx(classes.shapeDottedStart1, classes.shapeCircle)}
onMouseEnter={handlePopoverOpen}
Expand Down Expand Up @@ -1469,7 +1468,7 @@ export default function Environments() {
* @param {*} revDescription The description of the revision
* @returns {Object} Returns the infoIconItem
*/
function ReturnInfoIconItem({ revDescription}) {
function ReturnInfoIconItem({ revDescription }) {
const [anchorEl, setAnchorEl] = useState(null);

const handlePopoverOpen = (event) => {
Expand Down Expand Up @@ -1537,7 +1536,7 @@ export default function Environments() {
</>
)}
</Grid>
<Grid style={{display:'flex', flexDirection:'row'}}>
<Grid style={{display:'flex', flexDirection:'row', marginLeft: '76px'}}>
<Button
className={classes.textShape3}
onClick={() => toggleOpenConfirmRestore(
Expand Down Expand Up @@ -1587,7 +1586,8 @@ export default function Environments() {
</>
}
</Grid>
<Grid className={classes.textPadding} style={{display:'flex',flexDirection:'row'}}>
<Grid className={classes.textPadding}
style={{display:'flex', flexDirection:'row', marginLeft: '76px'}}>
<Button
className={classes.textShape3}
onClick={() => toggleOpenConfirmRestore(
Expand Down Expand Up @@ -2576,8 +2576,9 @@ export default function Environments() {
defaultMessage='Create new revision and deploy'
/>
)}
placement='top-end'
placement='right-start'
aria-label='New Deployment'
style={{ padding: '5px' }}
>
<IconButton size='small' aria-label='delete'>
<HelpOutlineIcon fontSize='small' />
Expand Down

0 comments on commit 83169c0

Please sign in to comment.