Skip to content

Commit 8dbb8fb

Browse files
committed
updated styles (moved roundy stuff to a single definition point)
1 parent ff76abf commit 8dbb8fb

18 files changed

+428
-428
lines changed

frontend/src/components/ErrorBoundary.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ const ErrorDetails = styled.details`
6060
margin-top: var(--space-3);
6161
padding: var(--space-3);
6262
background: var(--neutral-50);
63-
border: 1px solid var(--neutral-200);
6463
border-radius: var(--radius-sm);
6564
font-family: var(--font-mono);
6665
font-size: var(--text-xs);

frontend/src/components/FileDropzone.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,17 @@ export default function FileDropzone({ onFileSelected, selectedFile }: Props) {
4646
if (!fileConfig) {
4747
return "Configuration loading, please wait...";
4848
}
49-
if (!acceptedTypes.includes(file.type)) {
49+
const fileExt = '.' + (file.name.split('.').pop()?.toLowerCase() || '');
50+
if (!acceptedTypes.includes(file.type) && !acceptedExtensions.includes(fileExt)) {
5051
const allExts = groupedBySize.flatMap(g => g.extensions).join(', ');
5152
return `Unsupported file type. Allowed: ${allExts}`;
5253
}
53-
const maxMb = maxSizes[file.type] ?? 10;
54+
const maxMb = maxSizes[file.type] ?? fileConfig[fileExt]?.max_size_mb ?? 10;
5455
if (file.size > maxMb * 1024 * 1024) {
5556
return `File too large. Max ${maxMb}MB for this type.`;
5657
}
5758
return null;
58-
}, [fileConfig, acceptedTypes, maxSizes, groupedBySize]);
59+
}, [fileConfig, acceptedTypes, acceptedExtensions, maxSizes, groupedBySize]);
5960

6061
const handleFiles = useCallback((files: FileList | null) => {
6162
if (!files || files.length === 0) return;
@@ -109,7 +110,7 @@ export default function FileDropzone({ onFileSelected, selectedFile }: Props) {
109110
<div className="dz-content">
110111
{selectedFile ? (
111112
<>
112-
<div className="dz-file-icon" style={{ fontSize: "48px", marginBottom: "var(--space-2)" }}>
113+
<div className="dz-file-icon" style={{ fontSize: "var(--text-5xl)", marginBottom: "var(--space-2)" }}>
113114
{selectedFile.type.startsWith("image/") ? "🖼️" : "📄"}
114115
</div>
115116
<div className="dz-title">{selectedFile.name}</div>

frontend/src/components/PersistentSelectionBar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export default function PersistentSelectionBar() {
5656
<span
5757
style={{
5858
fontFamily: 'var(--font-display)',
59-
fontSize: '16px',
59+
fontSize: 'var(--text-base)',
6060
fontWeight: 700,
6161
color: 'var(--primary-400)',
6262
}}
@@ -65,7 +65,7 @@ export default function PersistentSelectionBar() {
6565
</span>
6666
<div
6767
style={{
68-
fontSize: '13px',
68+
fontSize: 'var(--text-sm)',
6969
color: 'var(--neutral-400)',
7070
maxWidth: '300px',
7171
overflow: 'hidden',

0 commit comments

Comments
 (0)