Skip to content

feat: support displayObjectSize #102

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

Merged
merged 1 commit into from
Oct 6, 2022
Merged

feat: support displayObjectSize #102

merged 1 commit into from
Oct 6, 2022

Conversation

Yazawazi
Copy link
Collaborator

@Yazawazi Yazawazi commented Oct 6, 2022

Issue: #101

There is a tiny problem in two places:

https://github.com/Yazawazi/json-viewer/blob/main/src/components/DataTypes/Object.tsx#L53-L66

https://github.com/Yazawazi/json-viewer/blob/main/src/components/DataTypes/Object.tsx#L95-L110

The pl (padding-left) property causes the gap to be increased on the left side. My description may not be clear, so here are the pictures:

image

displayObjectSize: true

image

displayObjectSize: false

@netlify
Copy link

netlify bot commented Oct 6, 2022

Deploy Preview for any-viewer ready!

Name Link
🔨 Latest commit 8fea968
🔍 Latest deploy log https://app.netlify.com/sites/any-viewer/deploys/633e25f0784735000919607e
😎 Deploy Preview https://deploy-preview-102--any-viewer.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@himself65 himself65 linked an issue Oct 6, 2022 that may be closed by this pull request
@codecov
Copy link

codecov bot commented Oct 6, 2022

Codecov Report

Base: 89.78% // Head: 89.90% // Increases project coverage by +0.12% 🎉

Coverage data is based on head (8fea968) compared to base (74be116).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #102      +/-   ##
==========================================
+ Coverage   89.78%   89.90%   +0.12%     
==========================================
  Files          18       18              
  Lines        1821     1843      +22     
  Branches      257      262       +5     
==========================================
+ Hits         1635     1657      +22     
  Misses        186      186              
Impacted Files Coverage Δ
src/components/DataTypes/Object.tsx 86.90% <100.00%> (+0.59%) ⬆️
src/index.tsx 98.78% <100.00%> (+<0.01%) ⬆️
src/stores/JsonViewerStore.ts 89.28% <100.00%> (+0.19%) ⬆️
src/type.ts 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@himself65 himself65 merged commit 164bd4c into TexteaInc:main Oct 6, 2022
Yazawazi added a commit that referenced this pull request Mar 10, 2023
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.

Add support for displayObjectSize
2 participants