fix(folder): align file workspace tab bar height
This commit is contained in:
@@ -103,7 +103,7 @@ export function FileWorkspaceTabBar() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flex items-stretch border-b border-border">
|
<div className="flex items-stretch">
|
||||||
<Reorder.Group
|
<Reorder.Group
|
||||||
as="div"
|
as="div"
|
||||||
ref={scrollRef}
|
ref={scrollRef}
|
||||||
@@ -115,7 +115,7 @@ export function FileWorkspaceTabBar() {
|
|||||||
onMouseEnter={() => setIsHovered(true)}
|
onMouseEnter={() => setIsHovered(true)}
|
||||||
onMouseLeave={() => setIsHovered(false)}
|
onMouseLeave={() => setIsHovered(false)}
|
||||||
className={cn(
|
className={cn(
|
||||||
"h-10 pt-1.5 px-1.5 flex-1 min-w-0 flex items-stretch gap-1.5",
|
"h-10 pt-1.5 px-1.5 flex-1 min-w-0 flex items-stretch gap-1.5 border-b border-border",
|
||||||
"overflow-x-scroll",
|
"overflow-x-scroll",
|
||||||
isHovered
|
isHovered
|
||||||
? [
|
? [
|
||||||
@@ -205,7 +205,7 @@ export function FileWorkspaceTabBar() {
|
|||||||
type="button"
|
type="button"
|
||||||
onClick={() => toggleFileTabPreview(activeFileTabId)}
|
onClick={() => toggleFileTabPreview(activeFileTabId)}
|
||||||
className={cn(
|
className={cn(
|
||||||
"shrink-0 flex items-center justify-center w-10 hover:bg-primary/8 transition-colors",
|
"shrink-0 flex items-center justify-center w-10 border-b border-border hover:bg-primary/8 transition-colors",
|
||||||
isPreviewActive && "text-primary"
|
isPreviewActive && "text-primary"
|
||||||
)}
|
)}
|
||||||
aria-label={isPreviewActive ? t("editSource") : t("preview")}
|
aria-label={isPreviewActive ? t("editSource") : t("preview")}
|
||||||
@@ -224,7 +224,7 @@ export function FileWorkspaceTabBar() {
|
|||||||
onClick={() => {
|
onClick={() => {
|
||||||
openPath(`${folder.path}/${activeTab.path}`).catch(() => {})
|
openPath(`${folder.path}/${activeTab.path}`).catch(() => {})
|
||||||
}}
|
}}
|
||||||
className="shrink-0 flex items-center justify-center w-10 hover:bg-primary/8 transition-colors"
|
className="shrink-0 flex items-center justify-center w-10 border-b border-border hover:bg-primary/8 transition-colors"
|
||||||
aria-label={t("preview")}
|
aria-label={t("preview")}
|
||||||
title={t("preview")}
|
title={t("preview")}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user