mirror of
https://github.com/linsa-io/linsa.git
synced 2026-02-24 19:35:02 +01:00
refactor: page item
This commit is contained in:
@@ -52,22 +52,19 @@ export const PageItem = React.forwardRef<HTMLAnchorElement, PageItemProps>(
|
||||
</Column.Text>
|
||||
</Column.Wrapper>
|
||||
|
||||
<Column.Wrapper style={columnStyles.topic}>
|
||||
{page.topic && (
|
||||
<Badge variant="secondary">{page.topic.prettyName}</Badge>
|
||||
)}
|
||||
</Column.Wrapper>
|
||||
|
||||
{!isTablet && (
|
||||
<Column.Wrapper style={columnStyles.topic}>
|
||||
{page.topic && (
|
||||
<Badge variant="secondary">{page.topic.prettyName}</Badge>
|
||||
)}
|
||||
<Column.Wrapper style={columnStyles.updated}>
|
||||
<Column.Text>
|
||||
{format(new Date(page.updatedAt), "d MMM yyyy")}
|
||||
</Column.Text>
|
||||
</Column.Wrapper>
|
||||
)}
|
||||
|
||||
<Column.Wrapper
|
||||
style={columnStyles.updated}
|
||||
className="flex justify-end"
|
||||
>
|
||||
<Column.Text className="text-sm">
|
||||
{format(new Date(page.updatedAt), "d MMM yyyy")}
|
||||
</Column.Text>
|
||||
</Column.Wrapper>
|
||||
</div>
|
||||
</Link>
|
||||
)
|
||||
|
||||
@@ -99,9 +99,9 @@ export const useColumnStyles = () => {
|
||||
"--max-width": "120px",
|
||||
},
|
||||
updated: {
|
||||
"--width": "82px",
|
||||
"--min-width": "82px",
|
||||
"--max-width": "82px",
|
||||
"--width": "65px",
|
||||
"--min-width": "120px",
|
||||
"--max-width": "120px",
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user