Skip to content

Commit b08b5ae

Browse files
david-kalmakoffDavid Kalmakoff
andauthored
fix: table overflow and word wrapping (#720)
- applications (table) - clients (table) - plugins (table, info card word wrapping, and card padding) Co-authored-by: David Kalmakoff <david@localhost.localdomain>
1 parent 3f29ded commit b08b5ae

File tree

5 files changed

+40
-28
lines changed

5 files changed

+40
-28
lines changed

ui/src/application/Applications.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class Applications extends Component<Stores<'appStore'>> {
5959
}
6060
maxWidth={1000}>
6161
<Grid item xs={12}>
62-
<Paper elevation={6}>
62+
<Paper elevation={6} style={{overflowX: 'auto'}}>
6363
<Table id="app-table">
6464
<TableHead>
6565
<TableRow>

ui/src/client/Clients.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class Clients extends Component<Stores<'clientStore'>> {
5454
</Button>
5555
}>
5656
<Grid item xs={12}>
57-
<Paper elevation={6}>
57+
<Paper elevation={6} style={{overflowX: 'auto'}}>
5858
<Table id="client-table">
5959
<TableHead>
6060
<TableRow style={{textAlign: 'center'}}>

ui/src/plugin/PluginDetailView.tsx

Lines changed: 36 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -131,29 +131,41 @@ const PanelWrapper: React.FC<IPanelWrapperProps> = ({
131131
}) => {
132132
const Icon = icon;
133133
return (
134-
<Container style={{display: 'block', width: '100%', margin: '20px'}}>
135-
<Typography variant="h5">
136-
{Icon ? (
137-
<span>
138-
<Icon />
139-
&nbsp;
140-
</span>
141-
) : null}
142-
{name}
143-
{refresh ? (
144-
<Button
145-
style={{float: 'right'}}
146-
onClick={() => {
147-
refresh();
148-
}}>
149-
<Refresh />
150-
</Button>
151-
) : null}
152-
</Typography>
153-
{description ? <Typography variant="subtitle1">{description}</Typography> : null}
154-
<hr />
155-
<div className={name.toLowerCase().trim().replace(/ /g, '-')}>{children}</div>
156-
</Container>
134+
<div
135+
style={{
136+
width: '100%',
137+
paddingLeft: '16px',
138+
paddingRight: '16px',
139+
}}>
140+
<Container
141+
style={{
142+
display: 'block',
143+
width: '100%',
144+
margin: '12px 0px',
145+
}}>
146+
<Typography variant="h5">
147+
{Icon ? (
148+
<span>
149+
<Icon />
150+
&nbsp;
151+
</span>
152+
) : null}
153+
{name}
154+
{refresh ? (
155+
<Button
156+
style={{float: 'right'}}
157+
onClick={() => {
158+
refresh();
159+
}}>
160+
<Refresh />
161+
</Button>
162+
) : null}
163+
</Typography>
164+
{description ? <Typography variant="subtitle1">{description}</Typography> : null}
165+
<hr />
166+
<div className={name.toLowerCase().trim().replace(/ /g, '-')}>{children}</div>
167+
</Container>
168+
</div>
157169
);
158170
};
159171

@@ -225,7 +237,7 @@ class PluginInfo extends Component<{pluginInfo: IPlugin}> {
225237
},
226238
} = this;
227239
return (
228-
<div>
240+
<div style={{wordWrap: 'break-word'}}>
229241
{name ? (
230242
<Typography variant="body2" className="name">
231243
Name: <span>{name}</span>

ui/src/plugin/Plugins.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class Plugins extends Component<Stores<'pluginStore'>> {
2727
return (
2828
<DefaultPage title="Plugins" maxWidth={1000}>
2929
<Grid item xs={12}>
30-
<Paper elevation={6}>
30+
<Paper elevation={6} style={{overflowX: 'auto'}}>
3131
<Table id="plugin-table">
3232
<TableHead>
3333
<TableRow>

ui/src/user/Users.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class Users extends Component<WithStyles<'wrapper'> & Stores<'userStore'>> {
8080
</Button>
8181
}>
8282
<Grid item xs={12}>
83-
<Paper elevation={6}>
83+
<Paper elevation={6} style={{overflowX: 'auto'}}>
8484
<Table id="user-table">
8585
<TableHead>
8686
<TableRow style={{textAlign: 'center'}}>

0 commit comments

Comments
 (0)