mirror of
https://github.com/Kong/insomnia.git
synced 2026-04-20 14:17:29 -04:00
fix: eliminate extra border (#9091)
This commit is contained in:
@@ -780,7 +780,7 @@ const Component = () => {
|
||||
collapsible
|
||||
>
|
||||
<div className="flex flex-1 flex-col divide-y divide-solid divide-[--hl-md] overflow-hidden">
|
||||
<div className="h-[40px] p-[--padding-sm]">
|
||||
<div className="flex h-[40px] flex-col items-start justify-center p-[--padding-sm]">
|
||||
<Select
|
||||
aria-label="Organizations"
|
||||
onSelectionChange={id => {
|
||||
|
||||
@@ -798,7 +798,7 @@ const Debug = () => {
|
||||
<div className="flex flex-1 flex-col divide-y divide-solid divide-[--hl-md] overflow-hidden">
|
||||
<div className="flex flex-col items-start divide-y divide-solid divide-[--hl-md]">
|
||||
<div className={`flex w-full h-[${INSOMNIA_TAB_HEIGHT}px]`}>
|
||||
<Breadcrumbs className="m-0 flex h-[--line-height-sm] w-full list-none items-center gap-2 px-[--padding-sm] font-bold">
|
||||
<Breadcrumbs className="m-0 flex h-full w-full list-none items-center gap-2 px-[--padding-sm] font-bold">
|
||||
<Breadcrumb className="flex h-full select-none items-center gap-2 text-[--color-font] outline-none data-[focused]:outline-none">
|
||||
<NavLink
|
||||
data-testid="project"
|
||||
@@ -860,7 +860,6 @@ const Debug = () => {
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="flex flex-1 flex-col overflow-hidden">
|
||||
<div className="flex justify-between gap-1 p-[--padding-sm]">
|
||||
<SearchField
|
||||
@@ -1151,9 +1150,7 @@ const Debug = () => {
|
||||
</GridList>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<WorkspaceSyncDropdown />
|
||||
|
||||
{isEnvironmentModalOpen && <WorkspaceEnvironmentsEditModal onClose={() => setEnvironmentModalOpen(false)} />}
|
||||
{isImportModalOpen && (
|
||||
<ImportModal
|
||||
|
||||
@@ -324,23 +324,25 @@ const Component = ({ loaderData, params }: Route.ComponentProps) => {
|
||||
minSize={10}
|
||||
collapsible
|
||||
>
|
||||
<Breadcrumbs
|
||||
className={`flex h-[${INSOMNIA_TAB_HEIGHT}px] m-0 w-full list-none items-center gap-2 px-[--padding-sm] font-bold`}
|
||||
>
|
||||
<Breadcrumb className="flex h-full select-none items-center gap-2 text-[--color-font] outline-none data-[focused]:outline-none">
|
||||
<NavLink
|
||||
data-testid="project"
|
||||
className="flex aspect-square h-7 flex-shrink-0 items-center justify-center gap-2 rounded-sm px-1 py-1 text-sm text-[--color-font] outline-none ring-1 ring-transparent transition-all hover:bg-[--hl-xs] focus:ring-inset focus:ring-[--hl-md] aria-pressed:bg-[--hl-sm] data-[focused]:outline-none"
|
||||
to={`/organization/${organizationId}/project/${activeProject._id}`}
|
||||
>
|
||||
<Icon className="text-xs" icon="chevron-left" />
|
||||
</NavLink>
|
||||
<span aria-hidden role="separator" className="h-4 text-[--hl-lg] outline outline-1" />
|
||||
</Breadcrumb>
|
||||
<Breadcrumb className="flex h-full select-none items-center gap-2 truncate text-[--color-font] outline-none data-[focused]:outline-none">
|
||||
<WorkspaceDropdown />
|
||||
</Breadcrumb>
|
||||
</Breadcrumbs>
|
||||
<div className="flex flex-col items-start">
|
||||
<Breadcrumbs
|
||||
className={`flex h-[${INSOMNIA_TAB_HEIGHT}px] m-0 w-full list-none items-center gap-2 px-[--padding-sm] font-bold`}
|
||||
>
|
||||
<Breadcrumb className="flex h-full select-none items-center gap-2 text-[--color-font] outline-none data-[focused]:outline-none">
|
||||
<NavLink
|
||||
data-testid="project"
|
||||
className="flex aspect-square h-7 flex-shrink-0 items-center justify-center gap-2 rounded-sm px-1 py-1 text-sm text-[--color-font] outline-none ring-1 ring-transparent transition-all hover:bg-[--hl-xs] focus:ring-inset focus:ring-[--hl-md] aria-pressed:bg-[--hl-sm] data-[focused]:outline-none"
|
||||
to={`/organization/${organizationId}/project/${activeProject._id}`}
|
||||
>
|
||||
<Icon className="text-xs" icon="chevron-left" />
|
||||
</NavLink>
|
||||
<span aria-hidden role="separator" className="h-4 text-[--hl-lg] outline outline-1" />
|
||||
</Breadcrumb>
|
||||
<Breadcrumb className="flex h-full select-none items-center gap-2 truncate text-[--color-font] outline-none data-[focused]:outline-none">
|
||||
<WorkspaceDropdown />
|
||||
</Breadcrumb>
|
||||
</Breadcrumbs>
|
||||
</div>
|
||||
<GridList
|
||||
aria-label="Environments"
|
||||
items={[baseEnvironment, ...subEnvironments]}
|
||||
|
||||
@@ -400,24 +400,26 @@ const Component = ({ params }: Route.ComponentProps) => {
|
||||
minSize={10}
|
||||
collapsible
|
||||
>
|
||||
<div className="flex h-full flex-col divide-y divide-solid divide-[--hl-md] overflow-hidden">
|
||||
<Breadcrumbs
|
||||
className={`flex h-[${INSOMNIA_TAB_HEIGHT}px] m-0 w-full list-none items-center gap-2 px-[--padding-sm] font-bold`}
|
||||
>
|
||||
<Breadcrumb className="flex h-full select-none items-center gap-2 text-[--color-font] outline-none data-[focused]:outline-none">
|
||||
<NavLink
|
||||
data-testid="project"
|
||||
className="flex aspect-square h-7 flex-shrink-0 items-center justify-center gap-2 rounded-sm px-1 py-1 text-sm text-[--color-font] outline-none ring-1 ring-transparent transition-all hover:bg-[--hl-xs] focus:ring-inset focus:ring-[--hl-md] aria-pressed:bg-[--hl-sm] data-[focused]:outline-none"
|
||||
to={`/organization/${organizationId}/project/${activeProject._id}`}
|
||||
>
|
||||
<Icon className="text-xs" icon="chevron-left" />
|
||||
</NavLink>
|
||||
<span aria-hidden role="separator" className="h-4 text-[--hl-lg] outline outline-1" />
|
||||
</Breadcrumb>
|
||||
<Breadcrumb className="flex h-full select-none items-center gap-2 truncate text-[--color-font] outline-none data-[focused]:outline-none">
|
||||
<WorkspaceDropdown />
|
||||
</Breadcrumb>
|
||||
</Breadcrumbs>
|
||||
<div className="flex flex-1 flex-col divide-y divide-solid divide-[--hl-md] overflow-hidden">
|
||||
<div className="flex w-full flex-col items-start">
|
||||
<Breadcrumbs
|
||||
className={`flex h-[${INSOMNIA_TAB_HEIGHT}px] m-0 w-full list-none items-center gap-2 px-[--padding-sm] font-bold`}
|
||||
>
|
||||
<Breadcrumb className="flex h-full select-none items-center gap-2 text-[--color-font] outline-none data-[focused]:outline-none">
|
||||
<NavLink
|
||||
data-testid="project"
|
||||
className="flex aspect-square h-7 flex-shrink-0 items-center justify-center gap-2 rounded-sm px-1 py-1 text-sm text-[--color-font] outline-none ring-1 ring-transparent transition-all hover:bg-[--hl-xs] focus:ring-inset focus:ring-[--hl-md] aria-pressed:bg-[--hl-sm] data-[focused]:outline-none"
|
||||
to={`/organization/${organizationId}/project/${activeProject._id}`}
|
||||
>
|
||||
<Icon className="text-xs" icon="chevron-left" />
|
||||
</NavLink>
|
||||
<span aria-hidden role="separator" className="h-4 text-[--hl-lg] outline outline-1" />
|
||||
</Breadcrumb>
|
||||
<Breadcrumb className="flex h-full select-none items-center gap-2 truncate text-[--color-font] outline-none data-[focused]:outline-none">
|
||||
<WorkspaceDropdown />
|
||||
</Breadcrumb>
|
||||
</Breadcrumbs>
|
||||
</div>
|
||||
<DocumentTab
|
||||
organizationId={organizationId}
|
||||
projectId={projectId}
|
||||
|
||||
@@ -303,23 +303,25 @@ const Component = () => {
|
||||
<ErrorBoundary showAlert>
|
||||
<div className="flex flex-1 flex-col divide-y divide-solid divide-[--hl-md] overflow-hidden">
|
||||
<div className="flex flex-col items-start divide-y divide-solid divide-[--hl-md]">
|
||||
<Breadcrumbs
|
||||
className={`flex h-[${INSOMNIA_TAB_HEIGHT}px] m-0 w-full list-none items-center gap-2 px-[--padding-sm] font-bold`}
|
||||
>
|
||||
<Breadcrumb className="flex h-full select-none items-center gap-2 text-[--color-font] outline-none data-[focused]:outline-none">
|
||||
<NavLink
|
||||
data-testid="project"
|
||||
className="flex aspect-square h-7 flex-shrink-0 items-center justify-center gap-2 rounded-sm px-1 py-1 text-sm text-[--color-font] outline-none ring-1 ring-transparent transition-all hover:bg-[--hl-xs] focus:ring-inset focus:ring-[--hl-md] aria-pressed:bg-[--hl-sm] data-[focused]:outline-none"
|
||||
to={`/organization/${organizationId}/project/${activeProject._id}`}
|
||||
>
|
||||
<Icon className="text-xs" icon="chevron-left" />
|
||||
</NavLink>
|
||||
<span aria-hidden role="separator" className="h-4 text-[--hl-lg] outline outline-1" />
|
||||
</Breadcrumb>
|
||||
<Breadcrumb className="flex h-full select-none items-center gap-2 truncate text-[--color-font] outline-none data-[focused]:outline-none">
|
||||
<WorkspaceDropdown />
|
||||
</Breadcrumb>
|
||||
</Breadcrumbs>
|
||||
<div className="flex w-full flex-col items-start">
|
||||
<Breadcrumbs
|
||||
className={`flex h-[${INSOMNIA_TAB_HEIGHT}px] m-0 w-full list-none items-center gap-2 px-[--padding-sm] font-bold`}
|
||||
>
|
||||
<Breadcrumb className="flex h-full select-none items-center gap-2 text-[--color-font] outline-none data-[focused]:outline-none">
|
||||
<NavLink
|
||||
data-testid="project"
|
||||
className="flex aspect-square h-7 flex-shrink-0 items-center justify-center gap-2 rounded-sm px-1 py-1 text-sm text-[--color-font] outline-none ring-1 ring-transparent transition-all hover:bg-[--hl-xs] focus:ring-inset focus:ring-[--hl-md] aria-pressed:bg-[--hl-sm] data-[focused]:outline-none"
|
||||
to={`/organization/${organizationId}/project/${activeProject._id}`}
|
||||
>
|
||||
<Icon className="text-xs" icon="chevron-left" />
|
||||
</NavLink>
|
||||
<span aria-hidden role="separator" className="h-4 text-[--hl-lg] outline outline-1" />
|
||||
</Breadcrumb>
|
||||
<Breadcrumb className="flex h-full select-none items-center gap-2 truncate text-[--color-font] outline-none data-[focused]:outline-none">
|
||||
<WorkspaceDropdown />
|
||||
</Breadcrumb>
|
||||
</Breadcrumbs>
|
||||
</div>
|
||||
<DocumentTab organizationId={organizationId} projectId={projectId} workspaceId={workspaceId} />
|
||||
<div className="flex w-full flex-col items-start gap-2 p-[--padding-sm]">
|
||||
<div className="flex w-full items-center justify-between gap-2">
|
||||
|
||||
Reference in New Issue
Block a user