Skip to content

Commit f7053eb

Browse files
committed
wip
1 parent 10f3946 commit f7053eb

File tree

4 files changed

+20
-7
lines changed

4 files changed

+20
-7
lines changed

client/src/ui/DependsDotView.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ class DependsDotViewProvider implements vscode.WebviewViewProvider {
198198
private openRecipe(recipeName: string) {
199199
recipeName = recipeName.replace(/\r/g, '');
200200
let recipeFound = false;
201-
this.bitbakeProjectScanner.scanResult._recipes.forEach((recipe: ElementInfo) => {
201+
this.bitbakeProjectScanner.activeScanResult._recipes.forEach((recipe: ElementInfo) => {
202202
// TODO fix resolving -native recipes (put that logic in a utility function) (could be shared with BitbakeRecipesView.getChildren)
203203
// TODO fix resolving some packages like xz or busybox (only when in the bottom row?)
204204
if (recipe.name === recipeName) {

client/web/depends-dot/main.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,9 @@ body {
99
background: var(--vscode-list-hoverBackground);
1010
cursor: pointer;
1111
}
12+
13+
.inputHorizontal {
14+
display: flex;
15+
flex-direction: row; /* Arrange items horizontally */
16+
padding: 0;
17+
}

client/web/depends-dot/main.html

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,14 @@ <h3>Select an image <b>Recipe</b> to analyze:</h3>
4141

4242
<div>
4343
<h3>You want to know:</h3>
44-
<ul id="depType">
45-
<li><input type="radio" name="dependencyType" value="why" checked><h3><b>Why</b> a package is included</h3></li>
46-
<li><input type="radio" name="dependencyType" value="depends"><h3>What it <b>Depends</b> on</h3></li>
47-
</ul>
44+
<div class="inputHorizontal"></div>
45+
<input type="radio" id="why" name="dependencyType" value="why" checked>
46+
<label for="why"><h3><b>Why</b> a package is included</h3></label>
47+
</div>
48+
<div class="horizontal">
49+
<input type="radio" id="depends" name="dependencyType" value="depends">
50+
<label for="depends"><h3>What it <b>Depends</b> on</h3></label>
51+
</div>
4852
</div>
4953

5054
<div>
@@ -57,9 +61,10 @@ <h3>Select which <b>Package</b> you want to examine:</h3>
5761
</div>
5862

5963
<div>
64+
<hr>
6065
<h3>Results:</h3>
61-
</div>
62-
<div id="results">
66+
<div id="results">
67+
</div>
6368
</div>
6469

6570
<script nonce="<%= nonce %>" src="<%= scriptUri %>"></script>

client/web/depends-dot/reset.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ h5,
1919
h6,
2020
p,
2121
ol,
22+
input,
23+
label,
2224
ul {
2325
margin: 0;
2426
padding: 0;

0 commit comments

Comments
 (0)