Skip to content

Commit

Permalink
fix: updating css and Copy Logs orientation
Browse files Browse the repository at this point in the history
Signed-off-by: Antonio Sonis <[email protected]>
  • Loading branch information
tonysnowboardunderthebridge committed Dec 22, 2023
1 parent 24b1093 commit fc277be
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 20 deletions.
2 changes: 1 addition & 1 deletion src/renderer/src/components/steps/CreateApplication.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ const CreateApplication = React.forwardRef(({ onNext }, ref) => {
onClick={async () => handleOpenFolder()}
color={WHITE}
backgroundColor={TRANSPARENT}
classes={`${commonStyles.buttonPadding} cy-action-open-folder`}
classes={`${commonStyles.buttonPaddingBordered} ${typographyStyles.desktopBody} ${typographyStyles.textWhite} cy-action-open-folder`}
/>
<Forms.Input
placeholder='Select the destination folder of your application using the Button'
Expand Down
20 changes: 11 additions & 9 deletions src/renderer/src/components/steps/GeneratingApplication.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const GeneratingApplication = React.forwardRef(({ onRestartProcess }, ref) => {
}

return !restartInProgress && (
<div className={`${commonStyles.largeFlexBlock} ${commonStyles.fullWidth}`} ref={ref}>
<div className={`${commonStyles.mediumFlexBlock} ${commonStyles.fullWidth}`} ref={ref}>
<div className={commonStyles.mediumFlexBlock}>
<Title
title={`Generating ${formData.createApplication.application}`}
Expand All @@ -89,6 +89,16 @@ const GeneratingApplication = React.forwardRef(({ onRestartProcess }, ref) => {
We are generating your app. <br />Once all the steps are done you will be able to complete and use your new application.
</p>
</div>
<div className={`${commonStyles.smallFlexRow} ${commonStyles.fullWidth} ${commonStyles.justifyEnd}`}>
<Button
disabled={!appGenerated}
label='Copy Logs'
onClick={() => onClickCopyLogs()}
color={WHITE}
backgroundColor={RICH_BLACK}
classes={`${commonStyles.buttonPadding} cy-action-donwload-logs`}
/>
</div>
<BorderedBox classes={`${commonStyles.fullWidth} ${styles.content}`} backgroundColor={TRANSPARENT} borderColorOpacity={OPACITY_30} color={WHITE}>
<div className={`${commonStyles.flexBlockNoGap} `}>
{npmLogs.map((log, index) => renderLog(log, index))}
Expand All @@ -98,14 +108,6 @@ const GeneratingApplication = React.forwardRef(({ onRestartProcess }, ref) => {
<CountDown status={countDownStatus} />
</div>
<div className={`${styles.buttonContainer} ${commonStyles.fullWidth}`}>
<Button
disabled={!appGenerated}
label='Copy Logs'
onClick={() => onClickCopyLogs()}
color={WHITE}
backgroundColor={RICH_BLACK}
classes={`${commonStyles.buttonPadding} cy-action-donwload-logs`}
/>
<Button
disabled={!appGenerated}
label='Continue'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@apply overflow-x-hidden overflow-y-auto max-h-[calc(100vH-22rem)] min-h-[calc(100vH-22rem)] lg:max-h-[calc(100vH-32rem)] lg:min-h-[calc(100vH-32rem)];
}
.buttonContainer {
@apply flex justify-between;
@apply flex justify-end;
}

.paddingStep {
Expand Down
20 changes: 11 additions & 9 deletions src/renderer/src/components/steps/PrepareFolder.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const PrepareFolder = React.forwardRef(({ onNext, onBack }, ref) => {

return (
<div className={styles.container} ref={ref}>
<div className={commonStyles.largeFlexBlock}>
<div className={commonStyles.mediumFlexBlock}>
<div className={`${commonStyles.mediumFlexBlock} ${commonStyles.fullWidth}`}>
<Title
title={formData.createApplication.application}
Expand All @@ -91,6 +91,16 @@ const PrepareFolder = React.forwardRef(({ onNext, onBack }, ref) => {
We are preparing your folder.<br /> Once all the steps are done you will be able to configure your services.
</p>
</div>
<div className={`${commonStyles.smallFlexRow} ${commonStyles.fullWidth} ${commonStyles.justifyEnd}`}>
<Button
disabled={!folderPrepared}
label='Copy Logs'
onClick={() => onClickCopyLogs()}
color={WHITE}
backgroundColor={RICH_BLACK}
classes={`${commonStyles.buttonPadding} cy-action-donwload-logs`}
/>
</div>
<BorderedBox classes={`${commonStyles.fullWidth} ${styles.content}`} backgroundColor={TRANSPARENT} borderColorOpacity={OPACITY_30} color={WHITE}>
<div className={`${commonStyles.flexBlockNoGap} `}>
{npmLogs.map((log, index) => renderLog(log, index))}
Expand All @@ -111,14 +121,6 @@ const PrepareFolder = React.forwardRef(({ onNext, onBack }, ref) => {
backgroundColor={TRANSPARENT}
classes={`${commonStyles.buttonPadding} cy-action-back`}
/>
<Button
disabled={!folderPrepared}
label='Copy Logs'
onClick={() => onClickCopyLogs()}
color={WHITE}
backgroundColor={RICH_BLACK}
classes={`${commonStyles.buttonPadding} cy-action-donwload-logs`}
/>
</div>
{folderPreparedError
? <Button
Expand Down
3 changes: 3 additions & 0 deletions src/renderer/src/styles/CommonStyles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@
.itemsEnd {
@apply items-end;
}
.buttonPaddingBordered {
@apply px-4 py-[7px] !important
}
.buttonPadding {
@apply px-4 py-2 !important
}
Expand Down

0 comments on commit fc277be

Please sign in to comment.