mirror of https://github.com/buster-so/buster.git
Update list padding
This commit is contained in:
parent
1a78ec52ca
commit
8ff51a3e50
|
@ -8,7 +8,7 @@ export const metadata: Metadata = {
|
|||
|
||||
export default function HomePage() {
|
||||
return (
|
||||
<AppPageLayout header={<HomePageHeader />}>
|
||||
<AppPageLayout headerSizeVariant="list" header={<HomePageHeader />}>
|
||||
<HomePageController />
|
||||
</AppPageLayout>
|
||||
);
|
||||
|
|
|
@ -81,6 +81,7 @@ const ModalSidebar: React.FC<{
|
|||
|
||||
return (
|
||||
<AppPageLayout
|
||||
headerSizeVariant="default"
|
||||
headerBorderVariant="ghost"
|
||||
header={SidebarHeader}
|
||||
scrollable
|
||||
|
@ -127,6 +128,7 @@ const Content: React.FC<{
|
|||
}> = ({ className, selectedMetric }) => {
|
||||
return (
|
||||
<AppPageLayout
|
||||
headerSizeVariant="default"
|
||||
headerClassName="px-3!"
|
||||
header={useMemo(
|
||||
() => (
|
||||
|
|
|
@ -67,7 +67,12 @@ export const buttonVariants = cva(
|
|||
{
|
||||
iconButton: true,
|
||||
size: 'small',
|
||||
className: 'w-5 min-w-5 max-w-5'
|
||||
className: 'w-5 min-w-5 max-w-5 px-1.5'
|
||||
},
|
||||
{
|
||||
iconButton: false,
|
||||
size: 'small',
|
||||
className: 'px-1.5'
|
||||
}
|
||||
],
|
||||
defaultVariants: {
|
||||
|
|
|
@ -296,10 +296,10 @@ const CollapseToggleIcon = React.memo(
|
|||
{showChevron && (
|
||||
<motion.div
|
||||
key="chevron"
|
||||
initial={{ opacity: 0, rotate: 0 }}
|
||||
animate={{ opacity: 1, rotate: !isCollapsed ? 180 : 0 }}
|
||||
initial={{ opacity: 0, rotate: -90 }}
|
||||
animate={{ opacity: 1, rotate: !isCollapsed ? 0 : -90 }}
|
||||
exit={{ opacity: 0 }}
|
||||
transition={{ duration: 0.12, ease: 'easeInOut' }}
|
||||
transition={{ duration: 0.165, ease: 'easeInOut' }}
|
||||
className={cn(
|
||||
'text-icon-color absolute inset-0 flex h-5 w-5 items-center justify-center text-base'
|
||||
)}>
|
||||
|
|
|
@ -68,17 +68,6 @@ export const LongContent: Story = {
|
|||
}
|
||||
};
|
||||
|
||||
/*
|
||||
<AppPageLayout
|
||||
contentContainerId={CHAT_CONTENT_CONTAINER_ID}
|
||||
header={<ChatHeader />}
|
||||
headerBorderVariant="ghost"
|
||||
scrollable
|
||||
className="flex h-full w-full min-w-[295px] flex-col">
|
||||
<ChatContent />
|
||||
</AppPageLayout>
|
||||
*/
|
||||
|
||||
export const LongContentGhostHeader: Story = {
|
||||
args: {
|
||||
contentContainerId: 'chat-container-content',
|
||||
|
|
|
@ -14,8 +14,8 @@ const paragraphVariants = cva('', {
|
|||
},
|
||||
lineHeight: {
|
||||
none: 'leading-[1]!',
|
||||
sm: 'leading-1.3!',
|
||||
base: 'leading-1.3!',
|
||||
sm: 'leading-1.5!',
|
||||
base: 'leading-1.5!',
|
||||
md: 'leading-[1.4]!',
|
||||
lg: 'leading-[1.5]!'
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ export const TextAndVersionText = React.memo(
|
|||
<Text size={'base'} truncate>
|
||||
{text}
|
||||
</Text>
|
||||
<Text size={'base'} variant={'secondary'}>
|
||||
<Text size={'sm'} variant={'secondary'}>
|
||||
{`Version ${version}`}
|
||||
</Text>
|
||||
</div>
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import type React from 'react';
|
||||
import { Text } from '@/components/ui/typography/Text';
|
||||
|
||||
export const HomePageHeader: React.FC<Record<string, never>> = () => {
|
||||
return <div>Home</div>;
|
||||
return <Text size={'base'}>Home</Text>;
|
||||
};
|
||||
|
|
|
@ -30,7 +30,7 @@ export const TermIndividualController: React.FC<{
|
|||
}
|
||||
rightHidden={!isFetchedTermsList}
|
||||
rightChildren={
|
||||
<AppPageLayout header={<TermIndividualHeaderSider />}>
|
||||
<AppPageLayout headerSizeVariant="default" header={<TermIndividualHeaderSider />}>
|
||||
<TermIndividualContentSider termId={termId} />
|
||||
</AppPageLayout>
|
||||
}
|
||||
|
|
|
@ -6,6 +6,7 @@ import { ChatHeader } from './ChatHeader';
|
|||
export const ChatContainer = React.memo(({ mounted }: { mounted?: boolean }) => {
|
||||
return (
|
||||
<AppPageLayout
|
||||
headerSizeVariant="default"
|
||||
header={<ChatHeader />}
|
||||
headerBorderVariant="ghost"
|
||||
scrollable
|
||||
|
|
|
@ -89,6 +89,7 @@ export const FileContainer: React.FC<FileContainerProps> = ({ children }) => {
|
|||
|
||||
return (
|
||||
<AppPageLayout
|
||||
headerSizeVariant="default"
|
||||
className="flex h-full min-w-[380px] flex-col"
|
||||
header={useMemo(
|
||||
() => (
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
"db:stop": "pnpm --filter @buster/database run db:stop",
|
||||
"db:studio": "pnpm --filter @buster/database run db:studio",
|
||||
"dev": "turbo dev",
|
||||
"dev:no-web": "turbo dev --filter \"!@buster-app/web\"",
|
||||
"dev:db-init": "turbo run dev:init --filter \"@buster/database\"",
|
||||
"dev:server": "turbo run dev --filter \"@buster-app/server\"",
|
||||
"dev:server:reset": "pnpm run dev:db-init && turbo run dev --filter \"@buster-app/server\"",
|
||||
|
|
Loading…
Reference in New Issue