Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[vtadmin-web] Add common max-width to infrastructure table views #7760

Merged
merged 1 commit into from
Mar 29, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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);
}