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

Horizontal layout gives a better experience #183

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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/tree-viz.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#content {
display: flex;
width: 100%;
flex-direction: column;
flex-direction: row;
padding: 15px;
}

Expand Down Expand Up @@ -52,7 +52,7 @@
<div id="header">
<% if(bundles.length > 1) {%>
<label for="bundle-select">Bundle:&nbsp;</label>
<select id="bundle-select">
<select id="bundle-select" size="<%= Math.min(bundles.length, 20) %>">">
<%_ bundles.forEach((bundle, index) => { _%>
<option value="<%= index %>"><%= bundle.name %> (<%= bundle.size %>)</option>
<%_ }); _%>
Expand Down
6 changes: 3 additions & 3 deletions tests/e2e/__snapshots__/cli.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ exports['CLI should output multiple bundles result as html 1'] = `
#content {
display: flex;
width: 100%;
flex-direction: column;
flex-direction: row;
padding: 15px;
}

Expand Down Expand Up @@ -53,7 +53,7 @@ exports['CLI should output multiple bundles result as html 1'] = `
<div id="header">

<label for="bundle-select">Bundle:&nbsp;</label>
<select id="bundle-select">
<select id="bundle-select" size="3">">
<option value="0">[combined] (3.63 KB)</option>
<option value="1">data/foo.min.js (718 B)</option>
<option value="2">data/inline-map.js (2.93 KB)</option>
Expand Down Expand Up @@ -124,7 +124,7 @@ exports['CLI should output result as html 1'] = `
#content {
display: flex;
width: 100%;
flex-direction: column;
flex-direction: row;
padding: 15px;
}

Expand Down