Skip to content

Commit 2362d32

Browse files
committed
Center overview dropdown to full grid
1 parent 32c24a9 commit 2362d32

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed

src/components/projects/projectId/overview/ProjectOverviewHeader.tsx

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ export default function ProjectOverviewHeader() {
3636

3737
return (
3838
<nav className="flex" aria-label="Breadcrumb">
39-
<ol role="list" className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-1 items-center">
40-
<li>
39+
<ol role="list" className="w-full grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-5 items-center">
40+
<li className="ml-2">
4141
<div className="flex items-center">
4242
<Tooltip placement="bottom" trigger="hover" color="invert" content={TOOLTIPS_DICT.PROJECT_OVERVIEW.TARGET_TYPE} className="relative z-10 cursor-auto">
43-
<span className={`cursor-help mr-2 underline text-black-800 filtersUnderline`}>Target</span>
43+
<span className='cursor-help mr-2 underline text-black-800 filtersUnderline'>Target</span>
4444
</Tooltip>
4545
{targetAttributes &&
4646
<KernDropdown buttonName={labelingTasks?.length == 0 ? '' : overviewFilters?.targetAttribute?.name} options={labelingTasks?.length == 0 ? [] : targetAttributes} dropdownWidth="w-44"
@@ -53,26 +53,18 @@ export default function ProjectOverviewHeader() {
5353
</div>
5454
</li>
5555

56-
<li>
56+
<li className="ml-2">
5757
<div className="flex items-center">
58-
<svg className="flex-shrink-0 h-5 w-5 text-gray-300" xmlns="http://www.w3.org/2000/svg"
59-
fill="currentColor" viewBox="0 0 20 20" aria-hidden="true">
60-
<path d="M5.555 17.776l8-16 .894.448-8 16-.894-.448z" />
61-
</svg>
6258
<Tooltip placement="bottom" trigger="hover" color="invert" content={TOOLTIPS_DICT.PROJECT_OVERVIEW.LABELING_TASK} className="relative z-10 cursor-auto">
63-
<span className={`cursor-help mr-2 underline text-black-800 filtersUnderline`}>Labeling task</span>
59+
<span className='cursor-help mr-2 underline text-black-800 filtersUnderline'>Labeling task</span>
6460
</Tooltip>
6561
{labelingTasks && <KernDropdown buttonName={overviewFilters?.labelingTask?.name} options={labelingTasksFiltered} dropdownWidth="w-44"
6662
selectedOption={(option: any) => dispatch(updateOverFilters('labelingTask', option))} />}
6763
</div>
6864
</li>
6965

70-
<li>
66+
<li className="ml-2">
7167
<div className="flex items-center">
72-
<svg className="flex-shrink-0 h-5 w-5 text-gray-300" xmlns="http://www.w3.org/2000/svg"
73-
fill="currentColor" viewBox="0 0 20 20" aria-hidden="true">
74-
<path d="M5.555 17.776l8-16 .894.448-8 16-.894-.448z" />
75-
</svg>
7668
<Tooltip placement="bottom" color="invert" content={TOOLTIPS_DICT.PROJECT_OVERVIEW.STATIC_DATA_SLICE} className="z-10 relative cursor-auto">
7769
<span className={`cursor-help mr-2 underline text-black-800 filtersUnderline`}>Data slice</span>
7870
</Tooltip>

0 commit comments

Comments
 (0)