mirror of
https://github.com/linsa-io/linsa.git
synced 2026-04-28 19:27:20 +02:00
chore: tweak responsive header and link
This commit is contained in:
@@ -26,11 +26,11 @@ export const LinkHeader = React.memo(() => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<ContentHeader className="px-6 py-5 max-lg:px-4">
|
<ContentHeader className="px-6 max-lg:px-4 lg:py-5">
|
||||||
<div className="flex min-w-0 shrink-0 items-center gap-1.5">
|
<div className="flex min-w-0 shrink-0 items-center gap-1.5">
|
||||||
<SidebarToggleButton />
|
<SidebarToggleButton />
|
||||||
<div className="flex min-h-0 items-center">
|
<div className="flex min-h-0 items-center">
|
||||||
<span className="truncate text-left text-xl font-bold">Links</span>
|
<span className="truncate text-left font-bold lg:text-xl">Links</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ export const LinkItem: React.FC<LinkItemProps> = ({
|
|||||||
onKeyDown={handleKeyDown}
|
onKeyDown={handleKeyDown}
|
||||||
className={cn(
|
className={cn(
|
||||||
"relative cursor-default outline-none",
|
"relative cursor-default outline-none",
|
||||||
"grid grid-cols-[auto_1fr_auto] items-center gap-x-2 px-2 py-2 sm:px-4 sm:py-2",
|
"grid grid-cols-[auto_1fr_auto] items-center gap-x-2 py-2 max-lg:px-4 sm:px-5 sm:py-2",
|
||||||
{
|
{
|
||||||
"bg-muted-foreground/10": isActive,
|
"bg-muted-foreground/10": isActive,
|
||||||
"hover:bg-muted/50": !isActive
|
"hover:bg-muted/50": !isActive
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ export const TopicDetailHeader = React.memo(function TopicDetailHeader({ topic }
|
|||||||
<div className="flex min-w-0 shrink-0 items-center gap-1.5">
|
<div className="flex min-w-0 shrink-0 items-center gap-1.5">
|
||||||
<SidebarToggleButton />
|
<SidebarToggleButton />
|
||||||
<div className="flex min-h-0 items-center">
|
<div className="flex min-h-0 items-center">
|
||||||
<span className="truncate text-left text-xl font-bold">{topic.prettyName}</span>
|
<span className="truncate text-left font-bold lg:text-xl">{topic.prettyName}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user