Skip to content
This repository was archived by the owner on Sep 21, 2021. It is now read-only.

Commit 065247f

Browse files
committed
Unify title element
1 parent ef30dc9 commit 065247f

File tree

10 files changed

+24
-10
lines changed

10 files changed

+24
-10
lines changed

packages/devtools-reps/src/reps/date-time.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ function DateTime(props) {
4242
}
4343

4444
function getTitle(grip) {
45-
return span({}, grip.class + " ");
45+
return span({
46+
className: "objectTitle"
47+
}, grip.class + " ");
4648
}
4749

4850
// Registration

packages/devtools-reps/src/reps/document.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ function getLocation(grip) {
4444
}
4545

4646
function getTitle(grip) {
47-
return span({}, grip.class + " ");
47+
return span({
48+
className: "objectTitle",
49+
}, grip.class + " ");
4850
}
4951

5052
// Registration

packages/devtools-reps/src/reps/function.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ function getTitle(props, grip) {
5252
title = "async " + title;
5353
}
5454

55-
return span({}, title);
55+
return span({
56+
className: "objectTitle",
57+
}, title);
5658
}
5759

5860
function summarizeFunction(grip) {

packages/devtools-reps/src/reps/grip-array.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,9 @@ function getTitle(props, object) {
9898
}
9999

100100
let title = props.title || object.class || "Array";
101-
return span({}, title + " ");
101+
return span({
102+
className: "objectTitle",
103+
}, title + " ");
102104
}
103105

104106
function getPreviewItems(grip) {

packages/devtools-reps/src/reps/grip-map.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ function GripMap(props) {
6464

6565
function getTitle(props, object) {
6666
let title = props.title || (object && object.class ? object.class : "Map");
67-
return span({}, title);
67+
return span({
68+
className: "objectTitle",
69+
}, title);
6870
}
6971

7072
function safeEntriesIterator(props, object, max) {

packages/devtools-reps/src/reps/grip.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ function GripRep(props) {
6767

6868
function getTitle(props, object) {
6969
let title = props.title || object.class || "Object";
70-
return span({}, title);
70+
return span({
71+
className: "objectTitle",
72+
}, title);
7173
}
7274

7375
function safePropIterator(props, object, max) {

packages/devtools-reps/src/reps/object-with-url.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function ObjectWithURL(props) {
3636
}
3737

3838
function getTitle(grip) {
39-
return span({className: "objectBox"}, getType(grip) + " ");
39+
return span({className: "objectTitle"}, getType(grip) + " ");
4040
}
4141

4242
function getType(grip) {

packages/devtools-reps/src/reps/promise.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ function PromiseRep(props) {
6969
}
7070

7171
function getTitle(object) {
72-
return span({}, object.class);
72+
return span({
73+
className: "objectTitle",
74+
}, object.class);
7375
}
7476

7577
function getProps(props, promiseState) {

packages/devtools-reps/src/reps/stylesheet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function StyleSheet(props) {
3838

3939
function getTitle(grip) {
4040
let title = "StyleSheet ";
41-
return span({className: "objectBox"}, title);
41+
return span({className: "objectBoxTitle"}, title);
4242
}
4343

4444
function getLocation(grip) {

packages/devtools-reps/src/reps/window.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function WindowRep(props) {
5656

5757
function getTitle(object) {
5858
let title = object.displayClass || object.class || "Window";
59-
return span({className: "objectBox"}, title);
59+
return span({className: "objectBoxTitle"}, title);
6060
}
6161

6262
function getLocation(object) {

0 commit comments

Comments
 (0)