Skip to content

Commit 8ab93e3

Browse files
committed
refactor: move every stylesheet as sibling of their counterpart
1 parent 2016cd0 commit 8ab93e3

32 files changed

+47
-266
lines changed
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
@import './fonts.scss';
2-
@import './HtmlEditor.scss';
3-
@import './Editor.scss';
4-
@import './AuthDialog.scss';
5-
@import './FeedbackButton.scss';
6-
@import './DiscordButton.scss';
7-
@import './MainMenuLabel.scss';
8-
@import './CustomEmbeddableRenderer.scss';
1+
@font-face {
2+
font-family: 'Roboto';
3+
src: url('/assets/fonts/Roboto-VariableFont_wdth,wght.ttf') format('truetype-variations');
4+
font-weight: 100 900;
5+
font-stretch: 75% 100%;
6+
font-style: normal;
7+
font-display: swap;
8+
}
99

1010
/* Override Excalidraw styles */
1111

src/frontend/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { ReactQueryDevtools } from '@tanstack/react-query-devtools';
99
import { queryClient } from './src/api/queryClient';
1010

1111
import "@atyrode/excalidraw/index.css";
12-
import "./src/styles/index.scss";
12+
import "./index.scss";
1313

1414
import type * as TExcalidraw from "@atyrode/excalidraw";
1515

File renamed without changes.

src/frontend/src/CustomEmbeddableRenderer.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
Editor,
1010
} from './pad';
1111
import { ActionButton } from './pad/buttons';
12+
import "./CustomEmbeddableRenderer.scss";
1213

1314
export const renderCustomEmbeddable = (
1415
element: NonDeleted<ExcalidrawEmbeddableElement>,
File renamed without changes.

src/frontend/src/pad/buttons/ActionButton.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import React, { useState, useEffect, useRef } from 'react';
2-
import '../styles/index.scss';
32
import { useWorkspaceState } from '../../api/hooks';
43
// Import SVGs as modules - using relative paths from the action button location
54
import { Terminal, Braces, Settings, Plus, ExternalLink, Monitor } from 'lucide-react';
65
import { ActionType, TargetType, CodeVariant, ActionButtonProps } from './types';
7-
import '../styles/ActionButton.scss';
6+
import './ActionButton.scss';
87
import { capture } from '../../utils/posthog';
98
import { ExcalidrawElementFactory, PlacementMode } from '../../lib/ExcalidrawElementFactory';
109

File renamed without changes.

src/frontend/src/pad/buttons/ActionButtonGrid.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import ActionButton from './ActionButton';
33
import { TargetType, CodeVariant, ActionType } from './types';
4-
import '../styles/ActionButtonGrid.scss';
4+
import './ActionButtonGrid.scss';
55

66
// Function to get button background color based on target and variant
77
const getButtonColor = (target: TargetType, codeVariant?: CodeVariant): string => {
File renamed without changes.

src/frontend/src/pad/containers/Dashboard.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ import StateIndicator from '../controls/StateIndicator';
55
import ControlButton from '../controls/ControlButton';
66
import { ActionButtonGrid } from '../buttons';
77
import { useWorkspaceState } from '../../api/hooks';
8-
import '../styles/index.scss';
9-
import '../styles/Dashboard.scss';
8+
import './Dashboard.scss';
109

1110
// Direct import from types
1211
type TargetType = 'terminal' | 'code';

0 commit comments

Comments
 (0)