Skip to content

Commit 6f99639

Browse files
committed
Refine the CSS for the Resource viewer
Signed-off-by: tdruez <tdruez@nexb.com>
1 parent 59b6b42 commit 6f99639

3 files changed

Lines changed: 15 additions & 4 deletions

File tree

CHANGELOG.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ v34.12.0 (unreleased)
77
- Add filtering by label and pipeline in the ``flush-projects`` management command.
88
Also, a new ``--dry-run`` option is available to test the filters before applying
99
the deletion.
10+
https://github.com/aboutcode-org/scancode.io/pull/1690
1011

1112
- Add support for using Package URL (purl) as project input.
1213
This implementation is based on ``purl2url.get_download_url``.
@@ -17,7 +18,9 @@ v34.12.0 (unreleased)
1718
This generally means an issue on the MatchCode.io server side.
1819
https://github.com/aboutcode-org/scancode.io/issues/1665
1920

20-
- Upgrade Ace JS library to latest version 1.42.0.
21+
- Upgrade Bulma CSS and Ace JS libraries to latest versions.
22+
Refine the CSS for the Resource viewer.
23+
https://github.com/aboutcode-org/scancode.io/pull/1692
2124

2225
v34.11.0 (2025-05-02)
2326
---------------------

scanpipe/templates/scanpipe/includes/resource_file_viewer.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@
4040
<button id="toggle-fullscreen" class="button is-dark"><i class="fa-solid fa-expand"></i></button>
4141
</div>
4242
</div>
43-
<div id="detected-data-buttons" class="field has-addons mb-0" style="border-left: lightgrey 1px solid; border-right: lightgrey 1px solid;">
43+
<div id="detected-data-buttons" class="field has-addons mb-0">
4444
{% for key, value in detected_values.items %}
45-
<p class="control mb-0" style="border-right: lightgrey 1px solid;">
45+
<p class="control mb-0">
4646
<button class="button is-radiusless" data-type="{{ key }}"{% if not value %} disabled{% endif %}>
4747
{{ key|title }}
4848
<span class="tag is-info is-rounded ml-1">{{ value|length }}</span>

scanpipe/templates/scanpipe/resource_detail.html

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<style>
88
#resource-viewer #editor {
99
min-height:730px;
10-
border: lightgrey 1px solid;
10+
border: var(--bulma-grey) 1px solid;
1111
}
1212
#resource-viewer .tag {
1313
height: 1.5em;
@@ -18,6 +18,14 @@
1818
height: auto;
1919
padding: 0 .25rem 0 .25rem;
2020
}
21+
#resource-viewer #detected-data-buttons {
22+
background-color: var(--bulma-pre-background);
23+
border-left: var(--bulma-grey) 1px solid;
24+
border-right: var(--bulma-grey) 1px solid;
25+
}
26+
#resource-viewer #detected-data-buttons p.control {
27+
border-right: var(--bulma-grey) 1px solid;
28+
}
2129
.ace_tooltip .ace_icon {display: none;}
2230
{# Full screen inspired by ace/demo/scrollable-page.html #}
2331
body.full-screen #resource-viewer {

0 commit comments

Comments
 (0)