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