Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 35b7c68

Browse files
committed
fix profile dropdown create workspace issue
1 parent 98695fb commit 35b7c68

File tree

1 file changed

+21
-5
lines changed

1 file changed

+21
-5
lines changed

‎client/packages/lowcoder/src/pages/common/profileDropdown.tsx

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,25 @@ const ActionItem = styled.div`
198198
}
199199
`;
200200

201+
const CreateWorkspaceItem = styled(ActionItem)`
202+
color: #4965f2;
203+
font-weight: 500;
204+
205+
206+
&:hover {
207+
background-color: #f0f5ff;
208+
color: #3651d4;
209+
}
210+
211+
svg {
212+
color: #4965f2;
213+
}
214+
215+
&:hover svg {
216+
color: #3651d4;
217+
}
218+
`;
219+
201220
const EmptyState = styled.div`
202221
padding: 20px 16px;
203222
text-align: center;
@@ -336,13 +355,10 @@ export default function ProfileDropdown(props: DropDownProps) {
336355
<EmptyState>No workspaces found</EmptyState>
337356
)}
338357
</WorkspaceList>
339-
340-
{!checkIsMobile(window.innerWidth) && (
341-
<ActionItem onClick={handleCreateOrg}>
358+
<CreateWorkspaceItem onClick={handleCreateOrg}>
342359
<AddIcon />
343360
{trans("profile.createOrg")}
344-
</ActionItem>
345-
)}
361+
</CreateWorkspaceItem>
346362
</WorkspaceSection>
347363
)}
348364

0 commit comments

Comments
 (0)