Skip to content

armgit / E2B

Public Imported from GitHub
0

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

Improve prompt block styling

Tomas Valenta2b62169b4da7
diff --git a/components/Editor/BlockEditor.tsx b/components/Editor/BlockEditor.tsx
index f54e99899..8d9cca67c 100644
--- a/components/Editor/BlockEditor.tsx
+++ b/components/Editor/BlockEditor.tsx
@@ -109,16 +109,18 @@ export default function BlockEditor({
ref={ref}
className={clsx(
'w-full',
- 'px-2',
'py-2',
+ 'px-4',
'rounded-lg',
'leading-6',
'tracking-wide',
'font-sans',
- 'scroller',
+ 'min-h-[42px]',
'text-slate-500',
'focus:text-slate-600',
- 'transition-all',
+ 'no-scroller',
+ 'transition-shadow',
+ 'transition-colors',
'focus:shadow',
'border',
'border-green-800/40',
diff --git a/styles/global.css b/styles/global.css
index b1e673ada..40d9ec520 100644
--- a/styles/global.css
+++ b/styles/global.css
@@ -26,8 +26,17 @@
}
.scroller {
- scrollbar-color: #cbd5e1 transparent;
+ scrollbar-color: transparent transparent;
scrollbar-width: thin;
scrollbar-gutter: stable both-edges;
}
+
+ .no-scroller {
+ scrollbar-width: none;
+ resize: none;
+ }
+}
+
+.no-scroller::-webkit-scrollbar {
+ display: none;
}