Skip to content

Commit

Permalink
Merge pull request #7760 from tinyspeck/sarabee-vtadmin-web-app-width
Browse files Browse the repository at this point in the history
[vtadmin-web] Add common max-width to infrastructure table views
  • Loading branch information
ajm188 committed Mar 29, 2021
2 parents 0b8ad1a + 22bb5e4 commit 92fd953
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion web/vtadmin/src/components/routes/Clusters.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const Clusters = () => {
));

return (
<div>
<div className="max-width-content">
<h1>Clusters</h1>
<DataTable columns={['Name', 'Id']} data={rows} renderRows={renderRows} />
</div>
Expand Down
2 changes: 1 addition & 1 deletion web/vtadmin/src/components/routes/Gates.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const Gates = () => {
));

return (
<div>
<div className="max-width-content">
<h1>Gates</h1>
<DataTable columns={['Cluster', 'Hostname']} data={rows} renderRows={renderRows} />
</div>
Expand Down
2 changes: 1 addition & 1 deletion web/vtadmin/src/components/routes/Keyspaces.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const Keyspaces = () => {
));

return (
<div>
<div className="max-width-content">
<h1>Keyspaces</h1>
<DataTable columns={['Cluster', 'Keyspace']} data={rows} renderRows={renderRows} />
</div>
Expand Down
2 changes: 1 addition & 1 deletion web/vtadmin/src/components/routes/Schemas.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const Schemas = () => {
});

return (
<div>
<div className="max-width-content">
<h1>Schemas</h1>
<DataTable columns={['Cluster', 'Keyspace', 'Table']} data={rows} renderRows={renderRows} />
</div>
Expand Down
1 change: 0 additions & 1 deletion web/vtadmin/src/components/routes/Tablets.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@
grid-gap: 8px;
grid-template-columns: 1fr min-content;
margin-bottom: 24px;
max-width: 1200px;
}
2 changes: 1 addition & 1 deletion web/vtadmin/src/components/routes/Tablets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const Tablets = () => {
}, []);

return (
<div>
<div className="max-width-content">
<h1>Tablets</h1>
<div className={style.controls}>
<TextInput
Expand Down
9 changes: 8 additions & 1 deletion web/vtadmin/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@
--textColorInverted: #fff;
--textColorSecondary: #718096;
--textColorDisabled: #cbd5e0;

/* A common bounding width for views that don't require the full viewport. */
--contentWidth: 1200px;
}

/* Dark theme */
Expand Down Expand Up @@ -187,7 +190,11 @@ table tbody td {
padding: var(--tableCellPadding);
}

/* Utilities */
/* One-liner utilities */
.max-width-content {
max-width: var(--contentWidth);
}

.text-color-secondary {
color: var(--textColorSecondary);
}

0 comments on commit 92fd953

Please sign in to comment.