Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: homepage stats chart size #758

Merged
merged 1 commit into from May 28, 2021
Merged

Conversation

ItsANameToo
Copy link
Member

@ItsANameToo ItsANameToo commented May 28, 2021

Summary

This sets the chart dimensions directly on the canvas itself, otherwise it would end up out-of-bounds on retina displays

Checklist

  • Documentation (if necessary)
  • Tests (if necessary)
  • Ready to be merged

@@ -49,8 +48,8 @@ class="ml-6"
x-init="init"
@toggle-dark-mode.window="toggleDarkMode"
>
<div class="block" wire:ignore style="width: 120px; height: 40px;">
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alfonsobries I removed these instances as they didn't seem to do anything, did you have any reason to add them on both the divs?

@ItsANameToo ItsANameToo merged commit aac15aa into deps-and-padding May 28, 2021
@ItsANameToo ItsANameToo deleted the fix/chart-size branch May 28, 2021 15:41
@@ -49,8 +48,8 @@ class="ml-6"
x-init="init"
@toggle-dark-mode.window="toggleDarkMode"
>
<div class="block" wire:ignore style="width: 120px; height: 40px;">
<canvas x-ref="chart" class="w-full h-full" ></canvas>
<div class="block" wire:ignore>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a div is a block by default

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's very true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants