Skip to content

Commit

Permalink
fix(Style): Makes the styling of index pages consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangnt2 committed Sep 23, 2024
1 parent c562f71 commit bb24a9f
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export default function UserAdminstration() {

return (
<>
<div className='mx-3 mt-3'>
<div className='container page-content'>
<div className='row'>
<div className='col-lg-2'>
<AdvancedSearch title='Advanced Search' fields={advancedSearch} />
Expand Down
2 changes: 1 addition & 1 deletion src/app/[locale]/admin/vendors/components/VendorsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export default function VendorsList() {
<QuickFilter id='vendorSearch' />
</div>
<div className='col-lg-10'>
<div className='row d-flex justify-content-between ms-1'>
<div className='row d-flex justify-content-between'>
<div className='col-lg-5'>
<button className='btn btn-primary col-auto me-2' onClick={handleAddVendor}>
{t('Add Vendor')}
Expand Down
2 changes: 1 addition & 1 deletion src/app/[locale]/components/components/ComponentsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ function ComponentsTable({ setNumberOfComponent }: Props) {

return (
<>
<div className='row'>
<div className='col'>
{status === 'authenticated' &&
<Table columns={columns} selector={true} server={initServerPaginationConfig(session)} />
}
Expand Down
4 changes: 2 additions & 2 deletions src/app/[locale]/licenses/components/LicensePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,12 @@ function LicensePage() {
signOut()
} else {
return (
<div className='container' style={{ maxWidth: '98vw', marginTop: '10px' }}>
<div className='container page-content'>
<div className='row'>
<div className='col-2 sidebar'>
<QuickFilter id='licensefilter' title={t('Quick Filter')} searchFunction={doSearch} />
</div>
<div className='col col-sm-9'>
<div className='col col-10'>
<div className='col'>
<div className='row'>
<PageButtonHeader
Expand Down
18 changes: 10 additions & 8 deletions src/app/[locale]/packages/components/Packages.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,17 +168,19 @@ export default function Packages() {
return (
<>
<DeletePackageModal modalMetaData={deletePackageModalMetaData} setModalMetaData={setDeletePackageModalMetaData} isEditPage={false}/>
<div className='mx-3 mt-3'>
<div className='container page-content'>
<div className='row'>
<div className='col-lg-2'>
<div className='col-2'>
<AdvancedSearch title='Advanced Search' fields={advancedSearch} />
</div>
<div className='col-lg-10'>
<div className='row d-flex justify-content-between ms-1'>
<button className='btn btn-primary col-auto' onClick={handleCreatePackage}>
{t('Add Package')}
</button>
<div className='col-auto buttonheader-title'>{t('PACKAGES')}</div>
<div className='col-10'>
<div className='row'>
<div className='col d-flex justify-content-between'>
<button className='btn btn-primary col-auto' onClick={handleCreatePackage}>
{t('Add Package')}
</button>
<div className='col-auto buttonheader-title'>{t('PACKAGES')}</div>
</div>
</div>
{
status === 'authenticated' ?
Expand Down
4 changes: 2 additions & 2 deletions src/app/[locale]/projects/components/Projects.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -346,13 +346,13 @@ function Project() {
<>
<ImportSBOMModal importSBOMMetadata={importSBOMMetadata} setImportSBOMMetadata={setImportSBOMMetadata} />
<DeleteProjectDialog projectId={deleteProjectId} show={deleteDialogOpen} setShow={setDeleteDialogOpen} />
<div className='mx-3 mt-3'>
<div className='container page-content'>
<div className='row'>
<div className='col-lg-2'>
<AdvancedSearch title='Advanced Search' fields={advancedSearch} />
</div>
<div className='col-lg-10'>
<div className='row d-flex justify-content-between ms-1'>
<div className='row d-flex justify-content-between'>
<div className='col-lg-5'>
<div className='row'>
<div className='btn-group col-auto' role='group'>
Expand Down
2 changes: 1 addition & 1 deletion src/app/[locale]/search/components/SearchPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export default function Search() {
{t('SEARCH RESULTS', { datalength: data ? data.length : 0 })}
</div>
</div>
<div className='row mt-5'>
<div className='row'>
{!data ? (
<div className='col-12' style={{ textAlign: 'center' }}>
<Spinner className='spinner' />
Expand Down
11 changes: 4 additions & 7 deletions src/app/[locale]/vulnerabilities/components/Vulnerabilities.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,10 @@ function Vulnerabilities() {
/>
<div className='container page-content'>
<div className='row'>
<div className='col-lg-2'>
<div className='row mb-3'>
<QuickFilter id='vunerabilities.quickSearch' />
</div>
<div className='row'>
<AdvancedSearch title='Advanced Filter' fields={advancedSearch} />
</div>
<div className='col-lg-2 sidebar'>
<QuickFilter id='vunerabilities.quickSearch' />
<br/>
<AdvancedSearch title='Advanced Filter' fields={advancedSearch} />
</div>
<div className='col-lg-10'>
<div className='row d-flex justify-content-between ms-1'>
Expand Down
2 changes: 1 addition & 1 deletion src/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ body {

.licadmin-upload {
color: #5d8ea9;
border: 1px solid #5d8ea9;
border-bottom: 1px solid #5d8ea9;
font-size: 1rem;
font-weight: bold;
text-transform: uppercase;
Expand Down

0 comments on commit bb24a9f

Please sign in to comment.