Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Change font styling

Tomas Valenta488809029e2e
diff --git a/components/Filesystem/Dir.tsx b/components/Filesystem/Dir.tsx
index 9301f6fd8..860e36e4b 100644
--- a/components/Filesystem/Dir.tsx
+++ b/components/Filesystem/Dir.tsx
@@ -55,21 +55,29 @@ function Dir({
<div
className={clsx(
'px-1',
+ 'py-2',
'flex',
'items-center',
- 'rounded',
+ 'rounded-md',
'space-x-1',
'cursor-pointer',
'border-gray-800',
- 'text-gray-300',
- 'hover:bg-gray-700/80',
- { 'bg-gray-700': isSelected },
+ 'hover:bg-[#1F2437]',
+ { 'bg-[#1F2437]': isSelected },
{ 'bg-transparent': !isSelected },
)}
onClick={handleOnClick}
>
{icon}
- <span className="truncate text-gray-400">{name}</span>
+ <span
+ className="
+ truncate
+ text-sm
+ text-gray-100
+ whitespace-nowrap
+ ">
+ {name}
+ </span>
</div>
{isExpanded && (
diff --git a/components/Filesystem/File.tsx b/components/Filesystem/File.tsx
index 5bd3eb70a..7aaec6131 100644
--- a/components/Filesystem/File.tsx
+++ b/components/Filesystem/File.tsx
@@ -75,22 +75,27 @@ function File({
className={
clsx(
'px-1',
- 'rounded',
+ 'py-2',
+ 'rounded-md',
'cursor-pointer',
- 'text-gray-300',
'flex',
'items-center',
'space-x-1',
- 'hover:bg-gray-700/80',
- { 'bg-gray-700': isSelectedViaRouter },
+ 'hover:bg-[#1F2437]',
+ { 'bg-[#1F2437]': isSelectedViaRouter },
{ 'bg-transparent': !isSelectedViaRouter }
)}
onClick={handleOnClick}
shallow
>
{icon}
- < span
- className='truncate text-gray-400'
+ <span
+ className="
+ truncate
+ text-sm
+ whitespace-nowrap
+ text-gray-100
+ "
>
{name}
</span >
diff --git a/components/Filesystem/index.tsx b/components/Filesystem/index.tsx
index 29b4f44ec..633b4bc67 100644
--- a/components/Filesystem/index.tsx
+++ b/components/Filesystem/index.tsx
@@ -16,7 +16,6 @@ import FilesystemPrimitive, {
import Dir from './Dir'
import File from './File'
-
export interface FileInfo {
isDir: boolean
name: string
@@ -56,7 +55,6 @@ function Filesystem({
}
}
})))
-
fs.add(dirpath, ns, ignore)
}, [
fs,
diff --git a/components/Text.tsx b/components/Text.tsx
index 23ca25fbd..3626508b5 100644
--- a/components/Text.tsx
+++ b/components/Text.tsx
@@ -67,4 +67,4 @@ function Text({
Text.size = Size
-export default Text
\ No newline at end of file
+export default Text