Skip to content

Commit

Permalink
feat: show 'project' field and fix viewport size
Browse files Browse the repository at this point in the history
  • Loading branch information
wqcstrong committed May 11, 2023
1 parent a178cfd commit 581b65b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/component/content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class Content {

render() {
const { content = {}, onOk } = this.options;
const { name = '--', address = '--', clientOrigin } = content;
const { name = '--', address = '--', clientOrigin, project } = content;
const [os, browser] = name.split(' ');
const contentText = `
<p><b>Device ID:</b> <span style="font-family: 'Monaco'">${address.slice(
Expand All @@ -39,8 +39,8 @@ export class Content {
)}</span></p>
<p><b>System:</b> ${os}</p>
<p><b>Browser:</b> ${browser}</p>
<p><b>Project:</b> ${project}</p>
`;
// <p><b>Group:</b> <span style="font-family: 'Monaco'">${project}</span></p>

/* info */
const info = document.createElement('div');
Expand Down
3 changes: 2 additions & 1 deletion src/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
}
}
.page-spy-content {
width: 75%;
max-width: (350em / @fontSize);
background-color: #fafafa;
border-radius: (4em / @fontSize);
Expand All @@ -58,7 +59,7 @@
text-overflow: ellipsis;
b {
display: inline-block;
width: 100px;
width: (92em / @fontSize);
text-align: right;
margin-right: 10px;
}
Expand Down

0 comments on commit 581b65b

Please sign in to comment.