tuned look and added context
This commit is contained in:
parent
a5e3b396d5
commit
8b1249ddc8
|
@ -83,7 +83,7 @@ class CCPMethodList2 extends HTMLElement{
|
||||||
</div>
|
</div>
|
||||||
</summary>
|
</summary>
|
||||||
<ul name="process_list" class="list-group ccp-process-list">
|
<ul name="process_list" class="list-group ccp-process-list">
|
||||||
<li class="list-group-item list-group-item-secondary ccp-process p-2 my-1" draggable="true">
|
<li class="d-flex list-group-item list-group-item-secondary ccp-process p-2 my-1" style="flex-direction: column; gap:5px" draggable="true">
|
||||||
<div>
|
<div>
|
||||||
<span name="version" class="badge badge-primary"></span>
|
<span name="version" class="badge badge-primary"></span>
|
||||||
<span name="author" class="badge badge-warning"></span>
|
<span name="author" class="badge badge-warning"></span>
|
||||||
|
@ -98,9 +98,12 @@ class CCPMethodList2 extends HTMLElement{
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<p style="margin-top:.5rem" class="small" name="description"></p>
|
<p class="m-0 p-0 small" name="description"></p>
|
||||||
<div>
|
<div>
|
||||||
<span name="keyword" class="badge badge-pill badge-light mr-1" style="opacity:.6"></span>
|
<span name="keyword" class="badge badge-pill badge-light border border-dark mr-1" style="opacity:.6"></span>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<span name="context" class="badge badge-light text-info border border-info mr-1"></span>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -338,6 +341,11 @@ class CCPMethodList2 extends HTMLElement{
|
||||||
"in" : (e,d)=>d.keywords,
|
"in" : (e,d)=>d.keywords,
|
||||||
apply : (e,d)=>{ e.alt = e.title = e.textContent = d }
|
apply : (e,d)=>{ e.alt = e.title = e.textContent = d }
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
target : "span[name=context]",
|
||||||
|
"in" : (e,d)=>d.metadata.filter(md=>md.role === "context"),
|
||||||
|
apply : (e,d)=>{ e.alt = e.title = e.textContent = d.title.replaceAll("%2F", "/") }
|
||||||
|
},
|
||||||
{
|
{
|
||||||
target : "p[name=description]",
|
target : "p[name=description]",
|
||||||
apply : (e,d)=>{ e.textContent = d.description }
|
apply : (e,d)=>{ e.textContent = d.description }
|
||||||
|
|
Loading…
Reference in New Issue