Skip to content

Commit 4dc4988

Browse files
author
Adam Plesnik
committed
Remove dots from class names, tune things
1 parent dbe8285 commit 4dc4988

File tree

4 files changed

+7
-12
lines changed

4 files changed

+7
-12
lines changed

src/demos/SupportsDemo.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const skeletonCollection = [
2121

2222
const SupportsDemo = () => {
2323
return (
24-
<DemoWrapper className="mt-4">
24+
<DemoWrapper className="mt-4 h-48">
2525
<div className="no-animations:translate-y-0 sticky left-4 top-0 flex w-fit -translate-y-20 animate-translate-down flex-wrap gap-2 rounded-b-lg bg-sky-400/40 p-4 backdrop-blur timeline sm:left-8 dark:bg-fuchsia-600/40">
2626
<Code>animate...</Code>
2727
<Code>timeline</Code>

src/docs/Docs.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ const Docs = () => {
105105
Use the <Code>no-animations</Code> modifier to apply fallback styling in browsers which do
106106
not support scroll-driven animations yet.
107107
</Paragraph>
108-
<DocsTable items={supportsClasses} noDots />
108+
<DocsTable items={supportsClasses} />
109109
<SupportsDemo />
110110
<CodeBlock language="html">{supports}</CodeBlock>
111111
</div>

src/docs/DocsTable.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Separator from '../components/Separator'
22
import DocsTableRow from './DocsTableRow'
33

4-
const DocsTable = ({ items, noDots = false }: DocsTableProps) => {
4+
const DocsTable = ({ items }: DocsTableProps) => {
55
return (
66
<div className="flex flex-col gap-2 py-2">
77
<div className="flex gap-1 text-xs font-bold sm:gap-4">
@@ -12,7 +12,7 @@ const DocsTable = ({ items, noDots = false }: DocsTableProps) => {
1212
<Separator />
1313
{items.map((item, index) => (
1414
<>
15-
<DocsTableRow className={item.className} code={item.code} key={index} noDots={noDots} />
15+
<DocsTableRow className={item.className} code={item.code} key={index} />
1616
<Separator key={'sep' + index} />
1717
</>
1818
))}
@@ -22,7 +22,6 @@ const DocsTable = ({ items, noDots = false }: DocsTableProps) => {
2222

2323
export interface DocsTableProps {
2424
items: Item[]
25-
noDots?: boolean
2625
}
2726

2827
export interface Item {

src/docs/DocsTableRow.tsx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,15 @@
1-
const DocsTableRow = ({ className, code, noDots = false }: DocsTableRowProps) => {
1+
const DocsTableRow = ({ className, code }: DocsTableRowProps) => {
22
return (
33
<div className="flex flex-col gap-1 font-mono text-sm sm:flex-row sm:gap-4">
4-
<div className="px-2 text-zinc-900 sm:w-80 dark:text-zinc-300">
5-
{noDots ? '' : '.'}
6-
{className}
7-
</div>
8-
<div className="flex-1 pl-8 pr-2 text-sky-700 sm:pl-2 dark:text-sky-300">{code};</div>
4+
<div className="px-2 text-zinc-900 sm:w-80 dark:text-zinc-300">{className}</div>
5+
<div className="flex-1 pl-8 pr-2 text-sky-700 sm:pl-2 dark:text-cyan-600">{code};</div>
96
</div>
107
)
118
}
129

1310
export interface DocsTableRowProps {
1411
className: string
1512
code: string
16-
noDots?: boolean
1713
}
1814

1915
export default DocsTableRow

0 commit comments

Comments
 (0)