Skip to content
This repository has been archived by the owner on Oct 7, 2023. It is now read-only.

Commit

Permalink
test: update test case snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
Aarebecca committed Aug 31, 2023
1 parent d18bfa4 commit 06a615f
Show file tree
Hide file tree
Showing 10 changed files with 4 additions and 2 deletions.
Binary file modified __tests__/integration/snapshots/Sparkline11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified __tests__/integration/snapshots/TimebarBasic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified __tests__/integration/snapshots/TimebarChart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified __tests__/integration/snapshots/TimebarController.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified __tests__/integration/snapshots/TimebarIcons.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified __tests__/integration/snapshots/TimebarTime.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion src/ui/select/select.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export class Select extends GUI<SelectStyleProps> {
style: {
...datum,
...optionStyle,
width,
width: width - padding[1] - padding[3],
selected: datum.value === this.currentValue,
onClick: (value, option, item) => {
this.setValue(value);
Expand Down Expand Up @@ -191,6 +191,8 @@ export class Select extends GUI<SelectStyleProps> {
const bbox = (this.dropdown.getElementsByClassName('dropdown-container')?.[0] as any)?.getBBox();

const { spacing } = dropdownStyle;
console.log(padding);

this.dropdown.attr({
y: height + spacing,
width: bbox.width + padding[1] + padding[3],
Expand Down
2 changes: 1 addition & 1 deletion src/ui/timebar/icons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ export class SpeedSelect extends IconBase<{ speed?: number; onSelect: SelectStyl
bordered: false,
showDropdownIcon: false,
selectRadius: 2,
dropdownPadding: 2,
dropdownPadding: this.padding,
dropdownRadius: 2,
dropdownSpacing: iconSize / 5,
placeholderFontSize: iconSize / 2,
Expand Down

0 comments on commit 06a615f

Please sign in to comment.