Skip to content

Commit d655c5e

Browse files
committed
2 parents 9dff1fc + 8c7128d commit d655c5e

3 files changed

Lines changed: 68 additions & 37 deletions

File tree

components/auth/SignupForm.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,10 @@ const SignupForm = ({ onLoadingChange }: SignupFormProps) => {
106106
// });
107107
// }
108108
}
109-
} catch {
109+
} catch (error) {
110110
form.setError('root', {
111111
type: 'manual',
112-
message: 'Failed to create account. Please try again.',
112+
message: `Failed to create account. Please try again. ${error instanceof Error ? error.message : String(error)}`,
113113
});
114114
}
115115
};

components/landing-page/project/CreateProjectModal/Details.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Label } from '@/components/ui/label';
55
import { cn } from '@/lib/utils';
66
import { z } from 'zod';
77
import MDEditor from '@uiw/react-md-editor';
8-
// import './md-editor-custom.css';
8+
import './md-editor-custom.css';
99

1010
interface DetailsProps {
1111
onDataChange?: (data: DetailsFormData) => void;

components/landing-page/project/CreateProjectModal/md-editor-custom.css

Lines changed: 65 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* Custom styles for MDEditor to match the current UI theme */
21
.w-md-editor {
32
background-color: #1a1a1a !important;
43
border: none !important;
@@ -7,17 +6,25 @@
76
.w-md-editor-toolbar {
87
background-color: #1a1a1a !important;
98
border-bottom: 1px solid #484848 !important;
10-
padding: 8px 12px !important;
9+
padding: 15px 12px !important;
1110
}
1211

1312
.w-md-editor-toolbar button {
1413
color: #b5b5b5 !important;
1514
background-color: transparent !important;
1615
border: none !important;
17-
padding: 8px !important;
16+
padding: 10px !important;
1817
margin: 2px !important;
1918
border-radius: 4px !important;
2019
transition: all 0.2s ease !important;
20+
font-size: 15px !important;
21+
min-width: 26px !important;
22+
min-height: 26px !important;
23+
}
24+
25+
.w-md-editor-toolbar button svg {
26+
width: 10px !important;
27+
height: 10px !important;
2128
}
2229

2330
.w-md-editor-toolbar button:hover {
@@ -30,21 +37,22 @@
3037
color: #000000 !important;
3138
}
3239

40+
/* Removed vertical demarcators/dividers */
3341
.w-md-editor-toolbar .w-md-editor-divider {
34-
background-color: #484848 !important;
35-
margin: 4px 8px !important;
42+
display: none !important;
3643
}
3744

3845
.w-md-editor-text-pre,
3946
.w-md-editor-text-input {
40-
background-color: #101010 !important;
4147
color: #ffffff !important;
48+
background: #101010 !important;
4249
font-size: 14px !important;
4350
line-height: 1.5 !important;
4451
}
4552

46-
.w-md-editor-text-pre {
47-
color: #b5b5b5 !important;
53+
/* Removed conflicting color override for text-pre */
54+
.w-md-editor-text-pre > * {
55+
color: #ffffff !important;
4856
}
4957

5058
.w-md-editor-text-input::placeholder {
@@ -123,32 +131,6 @@
123131
gap: 4px;
124132
}
125133

126-
.w-md-editor-toolbar .w-md-editor-toolbar-group:not(:last-child)::after {
127-
content: '';
128-
width: 1px;
129-
height: 20px;
130-
background-color: #484848;
131-
margin: 0 8px;
132-
}
133-
134-
/* Hide specific toolbar items if needed */
135-
/* Uncomment the lines below to hide specific toolbar buttons */
136-
137-
/* Hide fullscreen button */
138-
/* .w-md-editor-toolbar button[data-name="fullscreen"] {
139-
display: none !important;
140-
} */
141-
142-
/* Hide help button */
143-
/* .w-md-editor-toolbar button[data-name="help"] {
144-
display: none !important;
145-
} */
146-
147-
/* Hide preview toggle */
148-
/* .w-md-editor-toolbar button[data-name="preview"] {
149-
display: none !important;
150-
} */
151-
152134
/* Custom button styling for specific commands */
153135
.w-md-editor-toolbar button[data-name='bold'] {
154136
font-weight: bold !important;
@@ -161,3 +143,52 @@
161143
.w-md-editor-toolbar button[data-name='strikethrough'] {
162144
text-decoration: line-through !important;
163145
}
146+
147+
.w-md-editor-text {
148+
height: 100vh !important;
149+
background-color: #101010 !important;
150+
}
151+
152+
.wmde-markdown-color {
153+
color: #ffffff !important;
154+
}
155+
156+
.w-md-editor-text-input,
157+
.w-md-editor-text-input textarea {
158+
color: #ffffff !important;
159+
caret-color: #ffffff !important;
160+
background-color: transparent !important;
161+
}
162+
163+
.w-md-editor-area textarea,
164+
.w-md-editor-input textarea,
165+
textarea.w-md-editor-text-input {
166+
color: #ffffff !important;
167+
background-color: transparent !important;
168+
}
169+
170+
/* Override any inherited black text color */
171+
.w-md-editor-text * {
172+
color: inherit !important;
173+
}
174+
175+
.w-md-editor-text,
176+
.w-md-editor-area,
177+
.w-md-editor-input {
178+
color: #ffffff !important;
179+
}
180+
181+
.w-md-editor-content {
182+
border: 1px solid transparent !important;
183+
transition: border-color 0.2s ease !important;
184+
}
185+
186+
.w-md-editor-content:has(.w-md-editor-text:focus-within) {
187+
border-color: #a7f950 !important;
188+
}
189+
190+
.w-md-editor-toolbar button[data-name='help'],
191+
.w-md-editor-toolbar button[data-name='quote'],
192+
.w-md-editor-toolbar button[data-name='hr'] {
193+
display: none !important;
194+
}

0 commit comments

Comments
 (0)