mirror of
https://github.com/liriliri/eruda.git
synced 2026-03-20 09:38:37 +08:00
feat(network): display optimization
This commit is contained in:
@@ -16,7 +16,8 @@
|
||||
border-bottom: 1px solid $gray-light;
|
||||
margin-bottom: 10px;
|
||||
li {
|
||||
@include overflow-auto(x);
|
||||
display: flex;
|
||||
width: 100%;
|
||||
cursor: pointer;
|
||||
border-top: 1px solid $gray-light;
|
||||
height: 41px;
|
||||
@@ -27,12 +28,32 @@
|
||||
}
|
||||
}
|
||||
span {
|
||||
display: inline-block;
|
||||
display: block;
|
||||
line-height: 40px;
|
||||
height: 40px;
|
||||
padding: 0 10px;
|
||||
padding: 0 5px;
|
||||
font-size: $font-size-s;
|
||||
vertical-align: top;
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
}
|
||||
.name {
|
||||
flex: 1;
|
||||
padding-left: $padding;
|
||||
}
|
||||
.status {
|
||||
width: 40px;
|
||||
}
|
||||
.method {
|
||||
width: 50px;
|
||||
}
|
||||
.size {
|
||||
width: 70px;
|
||||
}
|
||||
.type,
|
||||
.time {
|
||||
width: 60px;
|
||||
padding-right: $padding;
|
||||
}
|
||||
&:nth-child(even) {
|
||||
background: $gray-light;
|
||||
|
||||
@@ -1,13 +1,12 @@
|
||||
{{#if requests}}
|
||||
{{#each requests}}
|
||||
<li class="eruda-request {{#if hasErr}}eruda-error{{/if}}" data-id="{{@key}}">
|
||||
<span>{{name}}</span>
|
||||
<span>{{status}}</span>
|
||||
<span>{{method}}</span>
|
||||
<span>{{subType}}</span>
|
||||
<span>{{size}}</span>
|
||||
<span>{{displayTime}}</span>
|
||||
<span {{{class 'blue'}}}>{{url}}</span>
|
||||
<span {{{class 'name'}}}>{{name}}</span>
|
||||
<span {{{class 'status'}}}>{{status}}</span>
|
||||
<span {{{class 'method'}}}>{{method}}</span>
|
||||
<span {{{class 'type'}}}>{{subType}}</span>
|
||||
<span {{{class 'size'}}}>{{size}}</span>
|
||||
<span {{{class 'time'}}}>{{displayTime}}</span>
|
||||
</li>
|
||||
{{/each}}
|
||||
{{else}}
|
||||
|
||||
1571
src/lib/util.js
1571
src/lib/util.js
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user