Skip to content

Commit 80b8273

Browse files
committed
feedback
1 parent 1445d52 commit 80b8273

File tree

3 files changed

+129
-201
lines changed

3 files changed

+129
-201
lines changed

src/AppContent.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const AppContent = ({ suggestionsData, activeChats, setActiveChats }) => {
4242
return (
4343
<div
4444
className="app-container"
45-
style={{ display: 'flex', position: 'relative', height: '700px' }}
45+
style={{ display: 'flex', position: 'relative', height: '500px' }}
4646
>
4747
{isSidebarOpen && (
4848
<Navbar

src/components/Carousel.jsx

Lines changed: 110 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -21,48 +21,75 @@ const AnimatedRow = ({ row, rowIndex }) => {
2121
<div
2222
key={card.id}
2323
style={{
24-
display: 'flex',
25-
alignItems: 'center',
26-
backgroundColor: 'var(--color-main-text)',
27-
borderRadius: '8px',
28-
padding: '10px',
29-
paddingTop: '3px',
30-
paddingBottom: '3px',
24+
position: 'relative',
3125
marginRight: '10px',
32-
paddingRight: '0px',
3326
flex: '0 0 275px',
3427
marginLeft: isFirstCardInSecondRow ? '132px' : '0'
3528
}}
3629
>
30+
{/* Proposition-Confidence Label */}
3731
<div
3832
style={{
39-
width: '220px',
40-
color: '#333',
41-
fontFamily: 'sans-serif',
42-
fontSize: '16px',
43-
lineHeight: '1.2'
33+
display: 'flex',
34+
justifyContent: 'space-between',
35+
marginBottom: '4px',
36+
fontSize: '12px',
37+
marginLeft: '6px',
38+
marginRight: '6px',
39+
color: 'var(--color-main-text)',
40+
opacity: 0.7
4441
}}
4542
>
46-
{card.text}
43+
<span>Proposition</span>
44+
<span>Confidence</span>
4745
</div>
46+
{/* Card Content */}
4847
<div
4948
style={{
50-
width: '1px',
51-
backgroundColor: '#888888',
52-
height: '40px',
53-
margin: '0 2px'
54-
}}
55-
></div>
56-
<div
57-
style={{
58-
flex: 1,
59-
fontWeight: 'bold',
60-
fontSize: '17px',
61-
color: '#333',
62-
textAlign: 'center'
49+
display: 'flex',
50+
alignItems: 'center',
51+
backgroundColor: 'var(--color-main-text)',
52+
borderRadius: '8px',
53+
padding: '10px',
54+
paddingTop: '3px',
55+
paddingBottom: '3px',
56+
paddingRight: '0px',
57+
height: '60px',
58+
boxSizing: 'border-box'
6359
}}
6460
>
65-
{card.value}
61+
<div
62+
style={{
63+
width: '220px',
64+
color: '#333',
65+
fontFamily: 'sans-serif',
66+
fontSize: '16px',
67+
lineHeight: '1.2',
68+
height: '40px',
69+
overflow: 'hidden'
70+
}}
71+
>
72+
{card.text}
73+
</div>
74+
<div
75+
style={{
76+
width: '1px',
77+
backgroundColor: '#888888',
78+
height: '40px',
79+
margin: '0 2px'
80+
}}
81+
></div>
82+
<div
83+
style={{
84+
flex: 1,
85+
fontWeight: 'bold',
86+
fontSize: '17px',
87+
color: '#333',
88+
textAlign: 'center'
89+
}}
90+
>
91+
{card.value}
92+
</div>
6693
</div>
6794
</div>
6895
);
@@ -72,47 +99,74 @@ const AnimatedRow = ({ row, rowIndex }) => {
7299
<div
73100
key={`${card.id}-dup`}
74101
style={{
75-
display: 'flex',
76-
alignItems: 'center',
77-
backgroundColor: 'var(--color-main-text)',
78-
borderRadius: '8px',
79-
padding: '10px',
80-
paddingTop: '3px',
81-
paddingBottom: '3px',
102+
position: 'relative',
82103
marginRight: '10px',
83-
paddingRight: '0px',
84104
flex: '0 0 275px'
85105
}}
86106
>
107+
{/* Proposition-Confidence Label */}
87108
<div
88109
style={{
89-
width: '220px',
90-
color: '#333',
91-
fontFamily: 'sans-serif',
92-
fontSize: '16px',
93-
lineHeight: '1.2'
110+
display: 'flex',
111+
justifyContent: 'space-between',
112+
marginBottom: '4px',
113+
marginLeft: '6px',
114+
marginRight: '6px',
115+
fontSize: '12px',
116+
color: 'var(--color-main-text)',
117+
opacity: 0.7
94118
}}
95119
>
96-
{card.text}
120+
<span>Proposition</span>
121+
<span>Confidence</span>
97122
</div>
123+
{/* Card Content */}
98124
<div
99125
style={{
100-
width: '1px',
101-
backgroundColor: '#888888',
126+
display: 'flex',
127+
alignItems: 'center',
128+
backgroundColor: 'var(--color-main-text)',
129+
borderRadius: '8px',
130+
padding: '10px',
131+
paddingTop: '3px',
132+
paddingBottom: '3px',
133+
paddingRight: '0px',
102134
height: '60px',
103-
margin: '0 2px'
104-
}}
105-
></div>
106-
<div
107-
style={{
108-
flex: 1,
109-
fontWeight: 'bold',
110-
fontSize: '17px',
111-
color: '#333',
112-
textAlign: 'center'
135+
boxSizing: 'border-box'
113136
}}
114137
>
115-
{card.value}
138+
<div
139+
style={{
140+
width: '220px',
141+
color: '#333',
142+
fontFamily: 'sans-serif',
143+
fontSize: '16px',
144+
lineHeight: '1.2',
145+
height: '40px',
146+
overflow: 'hidden'
147+
}}
148+
>
149+
{card.text}
150+
</div>
151+
<div
152+
style={{
153+
width: '1px',
154+
backgroundColor: '#888888',
155+
height: '60px',
156+
margin: '0 2px'
157+
}}
158+
></div>
159+
<div
160+
style={{
161+
flex: 1,
162+
fontWeight: 'bold',
163+
fontSize: '17px',
164+
color: '#333',
165+
textAlign: 'center'
166+
}}
167+
>
168+
{card.value}
169+
</div>
116170
</div>
117171
</div>
118172
);
@@ -161,7 +215,7 @@ const Carousel = ({ carouselData }) => {
161215
style={{
162216
color: 'var(--color-main-text)',
163217
textAlign: 'left',
164-
marginBottom: '20px',
218+
marginBottom: '12px',
165219
fontSize: '1.5em',
166220
}}
167221
>

0 commit comments

Comments
 (0)