Skip to content

Commit aafcf5c

Browse files
authored
Add scrollbar in Matches tab (#41)
Move the preview image up.
1 parent d9f23e4 commit aafcf5c

5 files changed

Lines changed: 13 additions & 7 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## v0.6.6
4+
5+
- Add a scrollbar to the right panel of the Matches tab.
6+
37
## v0.6.5
48

59
- Fix the MatchImageUi component displaying the wrong image when there is no

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codec_compare",
3-
"version": "0.6.5",
3+
"version": "0.6.6",
44
"description": "Codec performance comparison tool",
55
"publisher": "Google LLC",
66
"author": "Yannis Guyon",

src/codec_compare.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ export class CodecCompare extends LitElement {
252252
</p>
253253
254254
<p id="credits">
255-
Codec Compare version 0.6.5<br>
255+
Codec Compare version 0.6.6<br>
256256
<a href="https://github.com/webmproject/codec-compare">
257257
Sources on GitHub
258258
</a>

src/match_image_ui.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ export class MatchImageUi extends LitElement {
9797
overflow: hidden;
9898
display: flex;
9999
justify-content: center;
100+
min-height: 100px;
100101
}
101102
a {
102103
box-shadow: rgba(0, 0, 0, 0.3) 0px 0px 6px 0px;

src/matches_ui.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ export class MatchesUi extends LitElement {
8080
8181
<div class="rightVerticalFlex"
8282
style=${this.matchIndex !== undefined ? '' : 'display: none'}>
83+
<match-image-ui .referenceSelection=${this.referenceSelection}
84+
.batchSelection=${this.batchSelection}
85+
.matchIndex=${this.matchIndex}>
86+
</match-image-ui>
8387
<constants-table-ui
8488
.batch=${this.batchSelection.batch}
8589
.rowIndex=${rowIndex}>
@@ -94,10 +98,6 @@ export class MatchesUi extends LitElement {
9498
<mwc-icon>open_in_new</mwc-icon>
9599
</mwc-button>
96100
</a>`}
97-
<match-image-ui .referenceSelection=${this.referenceSelection}
98-
.batchSelection=${this.batchSelection}
99-
.matchIndex=${this.matchIndex}>
100-
</match-image-ui>
101101
</div>`;
102102
}
103103

@@ -115,16 +115,17 @@ export class MatchesUi extends LitElement {
115115
flex-direction: column;
116116
justify-content: flex-start;
117117
gap: 10px;
118-
overflow: hidden;
119118
}
120119
.leftVerticalFlex {
121120
flex: 4;
122121
/* Prevents unnecessarily wide table but breaks scrollbars. */
123122
/* align-items: flex-start; */
123+
overflow: hidden;
124124
}
125125
.rightVerticalFlex {
126126
flex: 1;
127127
align-items: center;
128+
overflow: auto;
128129
}
129130
130131
#batchesHeader {

0 commit comments

Comments
 (0)