Skip to content

Commit

Permalink
[frontend] adjust data tables styling (#7906)
Browse files Browse the repository at this point in the history
  • Loading branch information
labo-flg authored Sep 17, 2024
1 parent b35c33c commit a73a239
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ const DataTableBody = ({
/>
);
})}
{isLoading && <DataTableLinesDummy number={pageSize} />}
{isLoading && <DataTableLinesDummy number={Math.max(pageSize, 25)} />}
</>
)}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ const DataTableComponent = ({
orderAsc={orderAsc}
dataTableToolBarComponent={dataTableToolBarComponent}
/>
{<DataTableLinesDummy number={Math.max(currentPageSize, 100)} />}
{<DataTableLinesDummy number={Math.max(currentPageSize, 25)} />}
</div>
)}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,11 @@ const Malwares = () => {
percentWidth: 10,
},
is_family: {},
objectLabel: {},
created: {},
modified: {},
createdBy: {},
objectMarking: { percentWidth: 10 },
objectLabel: {},
};

const preloadedPaginationProps = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,21 +133,17 @@ const Campaigns = () => {

const renderList = () => {
const dataColumns = {
name: {
percentWidth: 15,
},
creator: { percentWidth: 14 },
created: {
percentWidth: 10,
},
modified: {},
createdBy: {},
objectMarking: { percentWidth: 10 },
objectLabel: {},
name: { percentWidth: 15 },
creator: { percentWidth: 13 },
created: { percentWidth: 10 },
modified: {}, // 15
createdBy: {}, // 12
objectLabel: {}, // 15
x_opencti_workflow_id: {
label: 'Processing status',
percentWidth: 10,
},
objectMarking: { percentWidth: 10 },
};

const preloadedPaginationProps = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@ const IntrusionSets = () => {
primary_motivation: {},
secondary_motivations: {},
creator: { percentWidth: 15 },
objectLabel: {},
modified: {},
objectMarking: { percentWidth: 10 },
objectLabel: {},
};

const preloadedPaginationProps = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,9 @@ const ThreatActorsGroup = () => {
sophistication: {},
resource_level: {},
creator: {},
objectLabel: {},
modified: {},
objectMarking: { percentWidth: 10 },
objectLabel: {},
};

const preloadedPaginationProps = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,9 @@ const ThreatActorsIndividual = () => {
sophistication: {},
resource_level: {},
creator: {},
objectLabel: {},
modified: {},
objectMarking: { percentWidth: 10 },
objectLabel: {},
};

const preloadedPaginationProps = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,6 @@ const PublicDashboards = () => {
isSortable: false,
render: ({ dashboard }, h) => textInTooltip(dashboard.name, h),
},
allowed_markings: {
id: 'allowed_markings',
},
enabled: {
id: 'enabled',
percentWidth: 15,
Expand All @@ -172,6 +169,9 @@ const PublicDashboards = () => {
isSortable: true,
render: ({ owner }, h) => textInTooltip(owner.name, h),
},
allowed_markings: {
id: 'allowed_markings',
},
};

return (
Expand Down

0 comments on commit a73a239

Please sign in to comment.