Skip to content

armgit / burr

Public Imported from GitHub
0

Build applications that make decisions (chatbots, agents, simulations, etc...). Monitor, trace, persist, and execute on your own infrastructure.

Fixes resize for placeholder text in annotations form

elijahbenizzy4eb953d9c75b
diff --git a/telemetry/ui/src/components/routes/app/AnnotationsView.tsx b/telemetry/ui/src/components/routes/app/AnnotationsView.tsx
index 9e18a5d9..16cc33f9 100644
--- a/telemetry/ui/src/components/routes/app/AnnotationsView.tsx
+++ b/telemetry/ui/src/components/routes/app/AnnotationsView.tsx
@@ -831,6 +831,18 @@ const ObservationForm = (props: {
props.setObservation(observation);
}}
placeholder="Select data (fields in state/attributes) associated with your observation"
+ styles={{
+ placeholder: (provided) => ({
+ ...provided,
+ whiteSpace: 'nowrap',
+ overflow: 'hidden',
+ textOverflow: 'ellipsis'
+ }),
+ control: (provided) => ({
+ ...provided,
+ resize: 'horizontal'
+ })
+ }}
className="w-full"
// TODO: Create and use a custom component for the menu items
components={{