Skip to content

Commit 48c667f

Browse files
committed
improve UI using feedback
1 parent 0391d10 commit 48c667f

2 files changed

Lines changed: 41 additions & 17 deletions

File tree

src/pages/featherDiff.astro

Lines changed: 37 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -25,24 +25,44 @@ import Layout from "../layouts/Layout.astro";
2525
</datalist>
2626

2727
<h2>Builds:</h2>
28-
<label for="build-source">Source build</label>
29-
<select id="build-source">
30-
<!-- DO NOT INSERT ANYTHING HERE -->
31-
<!-- Data here will be inserted by JavaScript -->
32-
</select>
33-
<label for="build-target">Target build</label>
34-
<select id="build-target">
35-
<!-- DO NOT INSERT ANYTHING HERE -->
36-
<!-- Data here will be inserted by JavaScript -->
37-
</select>
28+
<div style="display: flex; gap: 5rem;">
29+
<div style="display: flex; flex-direction: column;">
30+
<label for="build-source">Source build</label>
31+
<select id="build-source">
32+
<!-- DO NOT INSERT ANYTHING HERE -->
33+
<!-- Data here will be inserted by JavaScript -->
34+
</select>
35+
</div>
36+
<div style="display: flex; flex-direction: column;">
37+
<label for="build-target">Target build</label>
38+
<select id="build-target">
39+
<!-- DO NOT INSERT ANYTHING HERE -->
40+
<!-- Data here will be inserted by JavaScript -->
41+
</select>
42+
</div>
43+
</div>
3844

39-
<div id="diff-viewer" style="display:none">
40-
<h3>Classes:</h3>
41-
<p id="classes-diff"></p>
42-
<h3>Methods:</h3>
43-
<p id="methods-diff"></p>
44-
<h3>Fields:</h3>
45-
<p id="fields-diff"></p>
45+
<div id="diff-viewer" style="display:none; max-width: 100%;">
46+
<div style="display: flex; flex-wrap: wrap; gap: 1rem;">
47+
<div style="flex: 1; min-width: 32%;">
48+
<h3>Classes:</h3>
49+
<div style="overflow-y: auto; max-height: 480px;">
50+
<p id="classes-diff"></p>
51+
</div>
52+
</div>
53+
<div style="flex: 1; min-width: 32%;">
54+
<h3>Methods:</h3>
55+
<div style="overflow-y: auto; max-height: 480px;">
56+
<p id="methods-diff"></p>
57+
</div>
58+
</div>
59+
<div style="flex: 1; min-width: 32%;">
60+
<h3>Fields:</h3>
61+
<div style="overflow-y: auto; max-height: 480px;">
62+
<p id="fields-diff"></p>
63+
</div>
64+
</div>
65+
</div>
4666
</div>
4767
</div>
4868
</main>

src/styles/global.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ select[class~="dark"] {
7777
@apply text-ornithe-text bg-ornithe-input-bg border-none p-2 w-fit;
7878
}
7979

80+
div {
81+
scrollbar-color: var(--text-ornithe) var(--bg-o-transparent);
82+
}
83+
8084
/*If someone could get a tailwind.css file working I'd be grateful. -worldwidepixel*/
8185

8286
@tailwind utilities;

0 commit comments

Comments
 (0)