Skip to content

Commit 112118e

Browse files
authored
Merge pull request #417 from bluewave-labs/hint-preview-fix
Hint preview fix
2 parents c6a40b5 + ae30e57 commit 112118e

File tree

5 files changed

+14
-8
lines changed

5 files changed

+14
-8
lines changed

frontend/dist/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
<meta charset="UTF-8" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77
<title>Bluewave Onboarding</title>
8-
<script type="module" crossorigin src="/assets/index-Dm-A1Y3b.js"></script>
9-
<link rel="stylesheet" crossorigin href="/assets/index-BMxzGzfc.css">
8+
<script type="module" crossorigin src="/assets/index-CSUaIvQz.js"></script>
9+
<link rel="stylesheet" crossorigin href="/assets/index-EhLntcaF.css">
1010
</head>
1111

1212
<body>

frontend/src/components/Button/ButtonStyles.css

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
border-radius: 4px;
44
text-transform: none;
55
box-shadow: none;
6+
font-weight: 400;
67
}
78

89
/* .primary */

frontend/src/products/Hint/HintComponent.css

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.preview-container {
22
width: 100%;
3-
height: 250px;
3+
min-height: 250px;
44
border: 1px solid var(--light-border-color);
55
margin-top: 1rem;
66
overflow: auto;
@@ -18,21 +18,24 @@
1818
line-height: 30px;
1919
text-align: left;
2020
padding: 0 2rem;
21+
color: var(--preview-header-color);
22+
margin-bottom: 8px;
23+
margin-top: 24px;
2124
}
2225

2326
.preview-content-container {
24-
color: var(--second-text-color);
27+
color: var(--main-text-color);
2528
justify-content: space-between;
2629
display: flex;
2730
flex-direction: column;
2831
box-sizing: border-box;
29-
height: calc(100% - 20px);
32+
min-height: 170px;
3033
padding: 0 2rem;
3134
font-size: 13px;
3235
}
3336

3437
.preview-content p {
35-
margin: 0.1rem 0;
38+
margin: 0;
3639
line-height: 24px;
3740
}
3841

frontend/src/products/Hint/HintComponent.jsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const HintComponent = ({
2929
</div>
3030
)}
3131
<div className="preview-content-container" style={{ color: textColor }}>
32-
<div>
32+
<div className="preview-content">
3333
<ReactMarkdown>{content}</ReactMarkdown>
3434
</div>
3535
<div className="preview-button-container">
@@ -38,7 +38,8 @@ const HintComponent = ({
3838
style={{
3939
backgroundColor: buttonBackgroundColor,
4040
color: buttonTextColor,
41-
margin: "1rem",
41+
marginBottom: "1rem",
42+
borderRadius: '8px'
4243
}}
4344
text={previewBtnText}
4445
></Button>

frontend/src/styles/variables.css

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
--main-text-color: #344054;
88
--second-text-color: #667085;
99
--third-text-color: #475467;
10+
--preview-header-color: #484848;
1011
--main-purple: #7f56d9;
1112
--light-purple: #f3e5f5;
1213
--light-gray: #EAECF0;

0 commit comments

Comments
 (0)