Skip to content

Commit 6aaa878

Browse files
committed
messing with css a little
1 parent ffb4d62 commit 6aaa878

File tree

6 files changed

+13
-10
lines changed

6 files changed

+13
-10
lines changed

web/src/common/table/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
/* */
21
import * as React from "react";
32
import { Grid } from "../grid";
43

54
export function Table({ children }) {
6-
return <Grid columns="2fr 2fr 1fr">{children}</Grid>;
5+
return <Grid columns="auto 1fr auto">{children}</Grid>;
76
}

web/src/common/table/row.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
.value,
33
.detail {
44
padding: 16px;
5+
min-width: 0;
6+
57
&.truncate {
68
text-overflow: ellipsis;
79
white-space: nowrap;

web/src/common/table/row.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
/* */
21
import * as React from "react";
32
import S from "./row.css";
43
const { Fragment } = React;
54

65
export class Row extends React.PureComponent {
7-
// $FlowIgnore
86
valueRef;
97
titleRef;
108

web/src/content/settings/account-settings.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ export function AccountSettings({ email, name, verified }) {
2727
: l`Your email is not verified! (Click to resend verification email)`;
2828

2929
const emailContent = (
30-
<span className={S.nowrap}>
30+
<div className={S.settingRow}>
3131
<Tooltip clickable={false} title={verificationTitle}>
3232
{emailIcon}
3333
</Tooltip>
3434
{email}
35-
</span>
35+
</div>
3636
);
3737

3838
return (

web/src/content/settings/row.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* */
21
import * as React from "react";
32
import { Row as DefaultRow } from "../../common/table/row";
43
import { l } from "../../localization";
@@ -9,8 +8,8 @@ export function Row({ title, value, onEdit }) {
98
const editButton = (
109
<Link onClick={onEdit} className={S.caps}>{l`Change`}</Link>
1110
);
12-
const formattedValue = <span className={S.value}>{value || ""}</span>;
13-
const formattedTitle = <span className={S.caps}>{title}</span>;
11+
const formattedValue = <div className={S.value}>{value || ""}</div>;
12+
const formattedTitle = <div className={S.caps}>{title}</div>;
1413

1514
return (
1615
<DefaultRow

web/src/content/settings/settings.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,13 @@
1818
font-size: 10pt;
1919
}
2020

21-
.nowrap {
21+
.settingRow {
2222
white-space: nowrap;
23+
text-overflow: ellipsis;
24+
overflow-x: hidden;
25+
display: flex;
26+
flex-direction: row;
27+
align-items: center;
2328
}
2429

2530
.verificationStatus {

0 commit comments

Comments
 (0)