Closed junhaoliao closed 1 month ago
The changes introduced in this pull request involve modifications to the CSS and TypeScript files of the MenuBar component in the new-log-viewer project. A new CSS class .page-num-input
has been added to prevent content wrapping, while several existing CSS classes have been updated for better layout and responsiveness. Additionally, the rendering logic of the MenuBar component has been altered to enhance the display of long file names by splitting them into two halves.
File Path | Change Summary |
---|---|
new-log-viewer/src/components/MenuBar/PageNumInput.css |
New CSS class added: .page-num-input with white-space: nowrap; . |
new-log-viewer/src/components/MenuBar/index.css |
Multiple updates: .menu-bar-logo-container changed to min-width: 48px ; .menu-bar-filename renamed to .menu-bar-filename-container with new properties; two new classes .menu-bar-filename-left-split and .menu-bar-filename-right-split added. |
new-log-viewer/src/components/MenuBar/index.tsx |
Modified MenuBar component: replaced Typography with Box for file name display, incorporating two Typography components for splitting the file name. |
Objective | Addressed | Explanation |
---|---|---|
Prevent file name overflow in the menubar when the name is too long. (#[97]) | ✅ |
MenuBar
component's CSS and structure are related to the overall styling adjustments mentioned in the PR, which includes modifications to the layout and presentation of elements within the menu bar.
References
Fixes #97 new-log-viewer series: #45 #46 #48 #51 #52 #53 #54 #55 #56 #59 #60 #61 #62 #63 #66 #67 #68 #69 #70 #71 #72 #73 #74 #76 #77 #78 #79 #80 #81 #82 #83 #84 #89 #91 #93 #94 #96
Description
Validation performed
Summary by CodeRabbit
New Features
Improvements
Bug Fixes