Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
prasunanand committed Dec 21, 2024
1 parent 2a5f7dd commit 833ec64
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
1 change: 1 addition & 0 deletions ui/public/images/editor/java-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions ui/public/images/editor/unknown-file-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions ui/src/ide/IDE.scss
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ a {
.projectName{
background-color: #553b9e;
}


}

$font-sizes: 8, 10, 12, 14, 16, 18, 20, 22, 24;
Expand Down Expand Up @@ -170,6 +172,17 @@ $font-sizes: 8, 10, 12, 14, 16, 18, 20, 22, 24;
.projectName{
background-color: #3f3855;
}
.LauncherArea {
color: #ffffff;
}

.editor-body .single-line {
background: #343434;
}

.serial-no {
color: #ffffff;
}
}

.topBar {
Expand Down
5 changes: 4 additions & 1 deletion ui/src/ide/sidebar/FileBrowser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ const FileItem = (
sum: './images/editor/go-icon.svg',
py: './images/editor/py-icon.svg',
ipynb: './images/editor/py-icon.svg',
java: './images/editor/java-icon.svg',
class: './images/editor/java-icon.svg',
js: './images/editor/js-icon.svg',
json: './images/editor/json-icon.svg',
png: './images/editor/image-icon.svg',
Expand All @@ -144,7 +146,8 @@ const FileItem = (
txt: './images/editor/txt-icon.svg',
gitignore: './images/editor/git-icon.svg',
};
return extension != null ? iconMap[extension] : './images/editor/go-icon.svg';
const icon = extension != null ? iconMap[extension] : './images/editor/unknown-file-icon.svg';
return icon!= null ? icon : './images/editor/unknown-file-icon.svg';
};
const [isEditing, setIsEditing] = useState(false);
const [contentName, setContentName] = useState(content.name);
Expand Down

0 comments on commit 833ec64

Please sign in to comment.