Skip to content

Commit d983e0b

Browse files
committed
style: Improve SCSS formatting for better readability in AIAssistantModal and ProcessingPage
1 parent f17f5a4 commit d983e0b

File tree

4 files changed

+15
-10
lines changed

4 files changed

+15
-10
lines changed

frontend/src/common/components/AIAssistant/AIAssistantModal.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
--box-shadow: 0 -0.25rem 1rem rgba(0, 0, 0, 0.1);
66
--backdrop-opacity: 0.3;
77
align-items: flex-end;
8-
transition: --height 0.3s ease-out, --max-height 0.3s ease-out;
8+
transition:
9+
--height 0.3s ease-out,
10+
--max-height 0.3s ease-out;
911

1012
&.expanded {
1113
--height: 85vh;

frontend/src/common/hooks/useFileUpload.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export const useFileUpload = ({
9999
setError(
100100
validation.errorKey
101101
? t(validation.errorKey, validation.params)
102-
: validation.error ?? t('upload.error.unknown'),
102+
: (validation.error ?? t('upload.error.unknown')),
103103
);
104104
return;
105105
}

frontend/src/pages/Chat/__tests__/ChatPage.test.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,11 @@ interface MockComponentProps {
3434
vi.mock('@ionic/react', () => {
3535
const createMockComponent =
3636
(name: string) =>
37-
({ className, children, ...props }: MockComponentProps) =>
38-
(
39-
<div data-testid={`mock-${name}`} className={className} {...props}>
40-
{children}
41-
</div>
42-
);
37+
({ className, children, ...props }: MockComponentProps) => (
38+
<div data-testid={`mock-${name}`} className={className} {...props}>
39+
{children}
40+
</div>
41+
);
4342

4443
return {
4544
IonPage: createMockComponent('ion-page'),

frontend/src/pages/Processing/ProcessingPage.scss

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@
6464
height: 180px;
6565
border-radius: 50%;
6666
background: radial-gradient(circle at 30% 30%, #4f7dff 10%, #c97eff 40%, #ff8afc 80%);
67-
box-shadow: 0 0 40px rgba(201, 126, 255, 0.5), 0 0 80px rgba(201, 126, 255, 0.3);
67+
box-shadow:
68+
0 0 40px rgba(201, 126, 255, 0.5),
69+
0 0 80px rgba(201, 126, 255, 0.3);
6870
position: relative;
6971
overflow: hidden;
7072
animation: pulse 3s infinite ease-in-out;
@@ -155,7 +157,9 @@
155157
font-weight: 500;
156158
font-size: 1rem;
157159
cursor: pointer;
158-
transition: background-color 0.2s, color 0.2s;
160+
transition:
161+
background-color 0.2s,
162+
color 0.2s;
159163

160164
&:hover {
161165
background-color: var(--ion-color-primary-tint);

0 commit comments

Comments
 (0)