Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decisions: Handle Decisions heading formatting in preview & staking pages #3985

Merged
merged 2 commits into from
Oct 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@
width: 340px;
}

.descriptionContainer > h3 {
font-size: var(--size-medium);
}

.titleDecoration {
font-weight: var(--weight-bold);
color: var(--pink);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ export const time: string;
export const tag: string;
export const title: string;
export const details: string;
export const descriptionContainer: string;
export const titleDecoration: string;
export const loadingWrapper: string;
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,9 @@ const ActionPageDecisionWithIPFS = ({
/>
</div>
)}
{parse(decisionDetails?.description)}
<div className={styles.descriptionContainer}>
{parse(decisionDetails?.description)}
</div>
</div>
</div>
{isObjection && <hr className={styles.divider} />}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ export const addressInTitle: string;
export const titleDecoration: string;
export const tagWrapper: string;
export const commentBox: string;
export const setMarginWidth: string;
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,6 @@
text-align: center;
}

.noContent > button {
margin-left: 5px;
}

.rightContent {
margin-top: 17px;
}
Expand Down Expand Up @@ -92,6 +88,10 @@
width: 340px;
}

.descriptionContainer > h3 {
font-size: var(--size-medium);
}

.buttonContainer {
display: flex;
justify-content: flex-end;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export const userinfo: string;
export const userName: string;
export const title: string;
export const details: string;
export const descriptionContainer: string;
export const buttonContainer: string;
export const titleDecoration: string;
export const loadingWrapper: string;
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const MSG = defineMessages({
},
noDecisionText: {
id: 'dashboard.DecisionPreview.noDecisionText',
defaultMessage: 'No draft Decision found.',
defaultMessage: 'No draft Decision found. ',
},
createDecision: {
id: 'dashboard.DecisionPreview.createDecision',
Expand Down Expand Up @@ -173,7 +173,9 @@ const DecisionPreview = () => {
text={decisionData.title}
/>
</div>
{parse(decisionData.description)}
<div className={styles.descriptionContainer}>
{parse(decisionData.description)}
</div>
</>
) : (
<>
Expand Down