-
Couldn't load subscription status.
- Fork 752
WEB-(356)-improve the css of general-tab #2716
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
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
69 changes: 65 additions & 4 deletions
69
src/app/organization/offices/view-office/view-office.component.scss
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,74 @@ | ||
| .action-button { | ||
| width: 95%; | ||
| width: 85%; | ||
| margin: 0.2rem auto; | ||
| padding: 0.3rem; | ||
| border-radius: 3px; | ||
| transition: all 0.3s ease; | ||
|
|
||
| &:hover { | ||
| transform: translateY(-2px); | ||
| box-shadow: 0 4px 8px rgb(0 0 0 / 10%); | ||
| } | ||
| } | ||
|
|
||
| .office-card { | ||
| margin: 0 auto; | ||
| width: 90%; | ||
| padding: 0; | ||
| width: 100%; | ||
| margin: 0.75rem auto; | ||
| padding: 0.5rem; | ||
| border-radius: 8px !important; | ||
| box-shadow: 0 2px 8px rgb(0 0 0 / 10%) !important; | ||
|
|
||
| .navigation-tabs { | ||
| overflow: auto; | ||
| padding: 0.2rem 0; | ||
| scrollbar-width: thin; | ||
|
|
||
| &::-webkit-scrollbar { | ||
| height: 4px; | ||
| } | ||
|
|
||
| &::-webkit-scrollbar-thumb { | ||
| background-color: rgb(0 0 0 / 20%); | ||
| border-radius: 4px; | ||
| } | ||
|
|
||
| .mat-tab-label { | ||
| min-width: 80px; | ||
| padding: 0 0.5rem; | ||
| height: 36px; | ||
| font-size: 0.85rem; | ||
| } | ||
| } | ||
|
|
||
| @media (width <= 768px) { | ||
| width: 85%; | ||
| padding: 0.4rem; | ||
| } | ||
| } | ||
|
|
||
| .container { | ||
| padding: 0.5rem; | ||
| } | ||
|
|
||
| .narrow-container { | ||
| max-width: 600px; | ||
| margin: 0 auto; | ||
| padding: 0.75rem; | ||
| } | ||
|
|
||
| .extra-small { | ||
| max-width: 500px; | ||
| } | ||
|
|
||
| .compact-tab { | ||
| min-width: auto; | ||
| padding: 0 12px; | ||
| } | ||
|
|
||
| .card-content { | ||
| padding: 0.5rem; | ||
| } | ||
|
|
||
| .tab-panel { | ||
| padding: 0.5rem 0; | ||
| } |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
Consider centralizing margin utility classes.
The generic margin utilities
.m-b-10and.m-r-5are defined within this component-scoped SCSS file. If these are used across multiple components or if a global utility system already exists, consider:src/styles/utilities.scssor similar)This will improve maintainability and prevent duplicate utility definitions across the codebase.
Run the following script to check if these utilities exist elsewhere:
🏁 Script executed:
Length of output: 508
Now I'll run a corrected script to search for the margin utilities in the codebase.
Length of output: 2189
Now I'll verify how global utilities are loaded in this component and whether there are other style imports.
🏁 Script executed:
Length of output: 1902
Remove duplicate margin utilities from component SCSS.
The utilities
.m-b-10and.m-r-5(lines 39-45) are duplicated. They already exist insrc/assets/styles/_margin.scsswith identical definitions. Remove these lines and either:@import 'src/assets/styles/margin';This eliminates code duplication and aligns with the established utility system.
🤖 Prompt for AI Agents