Skip to content

Commit b2aaa97

Browse files
committed
[issues] Various improvements and bugfixes
1 parent 24ea625 commit b2aaa97

File tree

3 files changed

+212
-147
lines changed

3 files changed

+212
-147
lines changed

issues.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ header {
7878
background: hsl(200, 10%, 93%);
7979
}
8080

81+
[property="issue"].filtered {
82+
display: none !important;
83+
}
84+
8185
[property="issue"] h1 {
8286
display: flex;
8387
padding: .5rem 1rem;
@@ -276,6 +280,7 @@ form {
276280
display: inline-block;
277281
padding: .2em .5em .3em;
278282
border-radius: .3em;
283+
margin: .2em;
279284
background: var(--dark-color, rgba(0,0,0,.4));
280285
background-image: linear-gradient(hsla(0,0%,100%,.2), hsla(0,0%,100%,.2));
281286
color: white;

issues.html

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<link rel="stylesheet" href="shared/style/mavo.css">
77
<link rel="stylesheet" href="issues.css">
88
<script src="shared/scripts/mavo.js"></script>
9+
<!-- <script src="../../mavo/dist/mavo.js"></script> -->
910
</head>
1011
<body>
1112

@@ -69,11 +70,13 @@ <h2>
6970
<span property="tagFilter"></span>
7071
({count(issue.tag = tagFilter)})
7172
</label>
73+
<meta property="selectedTags" content="{filter(tagFilter, tagFilter.show).tagFilter}" />
7274
</fieldset>
7375
</div>
7476

75-
<article property="issue" mv-multiple class="status-{status} issue-{openness}" id="issue-{id}" hidden="{filtered}">
76-
<meta property="filtered" content="{(status and !get(statusFilter, status).show) or !get(openFilter, openness).show}" />
77+
<article property="issue" mv-multiple class="status-{status} issue-{openness} {if(filtered, 'filtered')}" id="issue-{id}">
78+
<meta property="filtered" content="{(status and !get(statusFilter, status).show) or !get(openFilter, openness).show or count(tag) and count(selectedTags) and !intersects(tag, selectedTags)}" />
79+
7780
<h1>
7881
<a href="#issue-{id}" property="id" mv-attribute="null" mv-default="{$previous.id + 1}">1</a>
7982
<span property="summary">Summary of Issue</span>
@@ -116,8 +119,9 @@ <h1>
116119
<div property="notes" class="markdown"></div>
117120
</dd>
118121
</dl>
119-
120-
<span property="tag" mv-multiple></span>
122+
<div>
123+
<span property="tag" mv-multiple>Tag</span>
124+
</div>
121125
</article>
122126
</div>
123127

0 commit comments

Comments
 (0)