Skip to content

Commit

Permalink
Merge pull request #1223 from Real-Dev-Squad/develop
Browse files Browse the repository at this point in the history
Dev to Main Sync - fix design of the Task request modal
  • Loading branch information
iamitprakash authored Jul 21, 2024
2 parents 5514543 + bc0652c commit 414b005
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion public/cancel-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion src/components/MarkDownEditor/MarkDownEditor.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import PropTypes from 'prop-types';
import { ChangeEvent, useState } from 'react';
import Markdown from 'markdown-to-jsx';
import styles from '@/components/issues/Card.module.scss';

interface MarkDownEditorProps {
onChange?: (e: ChangeEvent<HTMLTextAreaElement>) => void;
Expand Down Expand Up @@ -41,7 +42,7 @@ const MarkDownEditor: React.FC<MarkDownEditorProps> = ({
{getActivePaneLabel()}
</button>
</div>
<div className="markdown-editor">
<div className={styles.markdown__spacing}>
{mode === 'description' && (
<div className="description-box">
<textarea
Expand Down
15 changes: 9 additions & 6 deletions src/components/issues/Card.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,16 @@
flex-direction: column;
gap: 1rem;
}
.request_spacing {
margin-top: 1rem;
}
.modalCloseIcon {
appearance: none;
background-color: transparent;
border: none;
position: absolute;
right: -24px;
top: -18px;
right: 10px;
top: 10px;
cursor: pointer;
}
.trackMessage {
Expand Down Expand Up @@ -267,10 +270,6 @@
.card__top__button {
@include styles.issues-button;
min-width: 9rem;

@media (max-width: 48rem) {
margin-top: 1rem;
}
}

.card__issue_created__by,
Expand All @@ -288,6 +287,10 @@
}
}

.markdown__spacing {
margin-top: 0.5rem;
}

.card__link {
font-family: 'Inter';
font-style: normal;
Expand Down
4 changes: 3 additions & 1 deletion src/components/issues/TaskRequestForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,9 @@ const TaskRequestForm: FC<ActionFormProps> = ({
</div>
</div>
{isLoading && <Loader />}
<div className={styles.form_container}>
<div
className={`${styles.form_container} ${styles.request_spacing}`}
>
<button
className={styles.card__top__button}
type="submit"
Expand Down

0 comments on commit 414b005

Please sign in to comment.