mirror of
https://github.com/usebruno/bruno.git
synced 2026-07-08 22:45:25 +00:00
fix: collection settings access, UI overflow fixes, and auto-focus URL bar (#7861)
* fix: collection settings access, UI overflow fixes, and auto-focus URL bar - Move collection icon outside dropdown; clicking it opens collection settings/overview, clicking the name opens the switcher dropdown - Auto-focus URL bar when creating a transient request (#2919) - Fix long collection/folder name overflow with ellipsis truncation - Reduce dropdown width and truncate large collection names - Simplify breadcrumb collapse: show collection name and last folder, collapse middle items into a dropdown - Fix modal width to prevent shrinking with short collection names - Show "Create Collection" option when saving a draft with zero collections - Use IconBox consistently for collection icons * Replace Chevron component with IconChevronRight --------- Co-authored-by: Chirag Chandrashekhar <cchirag85@gmail.com> Co-authored-by: Sid <siddharth@usebruno.com>
This commit is contained in:
committed by
GitHub
parent
8269d51df4
commit
118ba801aa
@@ -38,6 +38,12 @@ const QueryUrl = ({ item, collection, handleRun }) => {
|
||||
const [generateCodeItemModalOpen, setGenerateCodeItemModalOpen] = useState(false);
|
||||
const hasChanges = useMemo(() => hasRequestChanges(item), [item]);
|
||||
|
||||
useEffect(() => {
|
||||
if (item.isTransient && !url && editorRef.current?.editor) {
|
||||
setTimeout(() => editorRef.current?.editor?.focus(), 0);
|
||||
}
|
||||
}, [item.uid]);
|
||||
|
||||
const onSave = () => {
|
||||
dispatch(saveRequest(item.uid, collection.uid));
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user