Skip to content

Commit

Permalink
implement styling suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
thmsobrmlr committed Nov 16, 2023
1 parent 413ebb6 commit d11cb5c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion frontend/src/lib/components/CommandBar/CommandBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { ActionBar } from './ActionBar'

const CommandBarOverlay = ({ children }: { children?: React.ReactNode }): JSX.Element => (
<div
className="fixed top-0 left-0 w-full h-full flex flex-col items-center justify-center"
className="fixed top-0 left-0 w-full h-full flex flex-col items-center justify-center p-3"
// eslint-disable-next-line react/forbid-dom-props
style={{
zIndex: 'var(--z-command-palette)',
Expand Down
5 changes: 4 additions & 1 deletion frontend/src/lib/components/CommandBar/SearchBarTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ type SearchBarTabProps = {
export const SearchBarTab = ({ type, active, count }: SearchBarTabProps): JSX.Element => {
const { setActiveTab } = useActions(searchBarLogic)
return (
<div className={`px-3 py-2 cursor-pointer text-xs ${active && 'font-bold'}`} onClick={() => setActiveTab(type)}>
<div
className={`px-3 py-2 cursor-pointer text-xs whitespace-nowrap ${active && 'font-bold'}`}
onClick={() => setActiveTab(type)}
>
{resultTypeToName[type]}
{count != null && <span className="ml-1 text-xxs text-muted-3000">{count}</span>}
</div>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/lib/components/CommandBar/SearchTabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const SearchTabs = (): JSX.Element | null => {
}

return (
<div className="flex items-center border-t space-x-3 px-2">
<div className="flex items-center border-t space-x-3 px-2 shrink-0 overflow-x-auto">
<SearchBarTab type="all" active={activeTab === 'all'} />
{Object.entries(searchResponse.counts).map(([type, count]) => (
<SearchBarTab key={type} type={type as ResultType} count={count} active={activeTab === type} />
Expand Down

0 comments on commit d11cb5c

Please sign in to comment.