Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(store): better display for long path names #293

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 5 additions & 7 deletions store/static/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,17 @@ body {
display: inline-block;
word-wrap: break-word;
}
.path {
width: 20%;
}
.threshold {
width: 50%;
.size-wrapper {
display: flex;
justify-content: flex-end;
}
.size {
text-align: right;
width: 15%;
margin: 0 .2em;
}
.master {
text-align: right;
width: 10%;
margin: 0 .2em;
}
.bar {
height: 7px;
Expand Down
14 changes: 9 additions & 5 deletions store/views/build.pug
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@
<div class="labels desktop">
<div class="light label path">PATH</div>
<div class="light label threshold"></div>
<div class="light label size">SIZE/THRESHOLD</div>
<div class="light label master">MASTER</div>
<div class="size-wrapper">
<div class="light label size">SIZE/THRESHOLD</div>
<div class="light label master">MASTER</div>
</div>
</div>
each file in files
<div class="file">
Expand All @@ -28,9 +30,11 @@
<div class="bar first" style="width: #{file.fillLength * 100 / file.length}%"></div>
<div class="bar length" style="background-color: #{file.baseColor}"></div>
</div>
<div class="size light">#{file.prettySize}/#{file.prettyMaxSize}#{file.unit}</div>
if file.diff
<div class="master light"><span class="mobile">master</span> #{file.diff}</div>
<div class="size-wrapper">
<div class="size light">#{file.prettySize}/#{file.prettyMaxSize}#{file.unit}</div>
if file.diff
<div class="master light"><span class="mobile">master</span> #{file.diff}</div>
</div>
</div>
</div>
</div>
Expand Down