Skip to content

Commit 3685d5a

Browse files
authored
fix: omni bar design (#620)
* fix ordering * fix omni bar design
1 parent f0faacb commit 3685d5a

File tree

5 files changed

+10
-6
lines changed

5 files changed

+10
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
"prepackage:release": "yarn build:apps-host",
3939
"package": "lerna run package --stream --scope @beak/apps-host-electron",
4040
"package:release": "lerna run package:release --stream --scope @beak/apps-host-electron",
41-
"start:apps-host-electron": "lerna exec --parallel --concurrency 1 --stream --scope '@beak/{apps-host-electron,ui}' yarn start",
4241
"start:electron-host-screenshot": "SCREENSHOT_SIZING=true lerna exec --parallel --concurrency 1 --stream --scope '@beak/{apps-host-electron,ui}' yarn start",
42+
"start:apps-host-electron": "lerna exec --parallel --concurrency 1 --stream --scope '@beak/{apps-host-electron,ui}' yarn start",
4343
"start:apps-host-web": "lerna exec --scope '@beak/apps-host-web' yarn start",
4444
"start:apps-web-marketing": "lerna exec --parallel --concurrency 1 --stream --scope '@beak/apps-web-marketing' yarn start",
4545
"start:apps-web-share": "lerna exec --parallel --concurrency 1 --stream --scope '@beak/apps-web-share' yarn start",

packages/ui/src/features/omni-bar/components/atoms/NoItemsFound.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import styled from 'styled-components';
33
const NoItemsFound = styled.div`
44
font-size: 13px;
55
margin-left: 10px;
6+
padding: 10px 0;
67
`;
78

89
export default NoItemsFound;

packages/ui/src/features/omni-bar/components/organism/CommandsView.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,9 +265,7 @@ const CommandsView: React.FC<React.PropsWithChildren<CommandsViewProps>> = ({ co
265265
);
266266
};
267267

268-
const Container = styled.div`
269-
padding: 8px 0;
270-
`;
268+
const Container = styled.div``;
271269

272270
const Item = styled.div<{ $active: boolean }>`
273271
font-size: 13px;
@@ -282,6 +280,12 @@ const Item = styled.div<{ $active: boolean }>`
282280
283281
&:hover { background: ${p => p.theme.ui.secondaryActionMuted}; }
284282
${p => p.$active ? css`background: ${p => p.theme.ui.secondaryActionMuted};` : ''}
283+
284+
&:last-of-type {
285+
padding-bottom: 10px;
286+
border-bottom-left-radius: 10px;
287+
border-bottom-right-radius: 10px;
288+
}
285289
`;
286290

287291
export default CommandsView;

packages/ui/src/features/omni-bar/components/organism/FinderView.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@ const FinderView: React.FC<React.PropsWithChildren<FinderViewProps>> = ({ conten
158158
};
159159

160160
const Container = styled.div`
161-
/* padding: 8px 0; */
162161
overflow: none;
163162
`;
164163

packages/ui/src/features/project-pane/components/organisms/Git.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const Git: React.FC<React.PropsWithChildren<unknown>> = () => {
2828
{'Branch'}
2929
</GroupName>
3030

31-
<Selector disabled value={selectedBranch}>
31+
<Selector value={selectedBranch}>
3232
{branches.map(b => (
3333
<option disabled={selectedBranch !== b.name} key={b.name} value={b.name}>{b.name}</option>
3434
))}

0 commit comments

Comments
 (0)