reafactor(report): Optimize the style of the playground #134
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes several changes to the
packages/visualizer
module, focusing on configuration adjustments, component updates, and renaming files for clarity. The most important changes include modifying the minification settings based on the environment, updating theBlackboard
component's height calculation, and renaming and refactoring thesend-to-playground
component toopen-playground
.Configuration Updates:
packages/visualizer/modern.config.ts
: Modified thecompress
option in theminify
configuration to depend on theCI
environment variable. [1] [2]Component Updates:
packages/visualizer/src/component/blackboard.tsx
: Adjusted thetargetHeight
calculation fromwindow.innerHeight * 0.7
towindow.innerHeight * 0.5
to improve layout responsiveness.packages/visualizer/src/component/detail-panel.tsx
: ReplacedSendToPlayground
withOpenPlayground
to reflect the renaming and refactoring of the component. [1] [2]File Renaming and Refactoring:
packages/visualizer/src/component/open-playground.tsx
: Renamed fromsend-to-playground.tsx
and refactored to use aDrawer
for displaying the playground instead of opening a new window. [1] [2] [3] [4]packages/visualizer/src/playground.tsx
: Updated imports to reflect the renaming ofsend-to-playground
toopen-playground
and added support for hiding the logo in thePlayground
component. [1] [2] [3] [4]