Skip to content

Commit

Permalink
fix graph for compact
Browse files Browse the repository at this point in the history
  • Loading branch information
benagora committed Feb 7, 2025
1 parent 5dba3b0 commit ae9cd67
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions playground/src/common/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export const isMobile = () => {
}

export function useIsCompactLayout(): boolean {
/*

const [isCompactLayout, setIsCompactLayout] = useState(false);

useEffect(() => {
Expand Down Expand Up @@ -93,8 +93,7 @@ export function useIsCompactLayout(): boolean {
}, []);

return isCompactLayout;
*/
return true;

}

export const deepMerge = (target: Record<string, any>, source: Record<string, any>): Record<string, any> => {
Expand Down
2 changes: 1 addition & 1 deletion playground/src/components/Chat/ChatCfgGraphSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export function RemoteGraphSelect() {
isCompactLayout ? "max-w-[80px]" : "max-w-full"
)}
>
<SelectValue placeholder={isCompactLayout ? "Graph" : "Select Graph"} />
<SelectValue placeholder={isCompactLayout ? "Graph" : "Select Graph"} />
</SelectTrigger>
<SelectContent>
{graphOptions.map((item) => (
Expand Down

0 comments on commit ae9cd67

Please sign in to comment.