fix: add table label ellipsis to avoid much long label #23
This commit is contained in:
parent
da5149b166
commit
343c05c3ab
@ -41,6 +41,7 @@ export const MetricsTable: React.FC<MetricsTableProps> = React.memo((props) => {
|
||||
{
|
||||
title: title[0],
|
||||
dataIndex: 'x',
|
||||
ellipsis: true,
|
||||
render: (val) => val ?? <span className="italic opacity-60">(None)</span>,
|
||||
},
|
||||
{
|
||||
|
@ -96,7 +96,24 @@ async function createSessionEvent(session: WebsiteSession) {
|
||||
data: Array.from({ length: faker.number.int({ max: 20 }) }).map(() => ({
|
||||
sessionId: session.id,
|
||||
websiteId: session.websiteId,
|
||||
urlPath: '/',
|
||||
urlPath: [
|
||||
faker.system.directoryPath(),
|
||||
faker.system.directoryPath(),
|
||||
faker.system.directoryPath(),
|
||||
faker.system.directoryPath(),
|
||||
faker.system.directoryPath(),
|
||||
faker.system.directoryPath(),
|
||||
faker.system.directoryPath(),
|
||||
faker.system.directoryPath(),
|
||||
faker.system.directoryPath(),
|
||||
faker.system.directoryPath(),
|
||||
faker.system.directoryPath(),
|
||||
faker.system.directoryPath(),
|
||||
faker.system.directoryPath(),
|
||||
faker.system.directoryPath(),
|
||||
faker.system.directoryPath(),
|
||||
faker.system.filePath(),
|
||||
].join(''), // generate long path
|
||||
createdAt: faker.date.between({
|
||||
from: session.createdAt,
|
||||
to: endDate,
|
||||
|
Loading…
Reference in New Issue
Block a user