Skip to content

Commit

Permalink
Merge pull request #43 from CoreumFoundation/fix/chart-rate-limit
Browse files Browse the repository at this point in the history
fix the network dropdown on safari and try to fix the chart resizing
  • Loading branch information
jccifuentes21 authored Jul 11, 2023
2 parents ccba360 + 457f664 commit 9deeddb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,9 @@ const PriceChart: React.FC = () => {
const handle = (e: any) => {
const container: any = document.getElementById('price-chart');
const dimensions = {
width: container.clientWidth * (container.clientWidth > 767 ? 0.5 : 0.85),
width: container.clientWidth * (container.clientWidth > 767 ? 0.5 : 0.9),
height: container.clientHeight,
};
console.log('CALLED', container.clientWidth, container.clientHeight);
chartRef.current?.applyOptions(dimensions);
};
window.addEventListener('resize', handle);
Expand Down
1 change: 0 additions & 1 deletion packages/ui/src/styles/theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ export const common = (theme: ThemeOptions) =>
toolbar: {
'@media (min-width: 1025px)': {
height: 80,
overflow: 'hidden',
},
},
layout: {
Expand Down

0 comments on commit 9deeddb

Please sign in to comment.