-
Notifications
You must be signed in to change notification settings - Fork 4
[NAE-2413] Minor CSS changes & fixes #331
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
base: release/6.5.0
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| <nc-navigation-double-drawer #sidenav image="assets/img/netgrif_full_white.svg" imageRouterLink="/tabbed-views"> | ||
| <nc-navigation-double-drawer #sidenav image="assets/img/netgrif_full_black.svg" imageRouterLink="/tabbed-views"> | ||
| <router-outlet></router-outlet> | ||
| </nc-navigation-double-drawer> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,7 +7,7 @@ | |
|
|
||
| .search-panel { | ||
| margin-top: 16px; | ||
| padding: 8px 16px; | ||
| margin-bottom: 2px; | ||
| } | ||
|
|
||
| .content-margin { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -45,3 +45,7 @@ | |
| margin-top: 0 !important; | ||
| margin-bottom: 0 !important; | ||
| } | ||
|
|
||
| .mat-paginator { | ||
| background: transparent !important; | ||
| } | ||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -23,7 +23,7 @@ | |||||||||||||||||||||
| </ng-template> | ||||||||||||||||||||||
| </ng-template> | ||||||||||||||||||||||
| <ng-template [ngIf]="!formControlRef.disabled"> | ||||||||||||||||||||||
| <div class="full-width"> | ||||||||||||||||||||||
| <div class="full-width" [ngClass]="{'padding-bottom-fix': !dataField.isInvalid(formControlRef) && !hasHint()}"> | ||||||||||||||||||||||
| <div #i18nLabel class="i18n-label" [ngClass]="{'invalid-form-label': dataField.isInvalid(formControlRef)}"> | ||||||||||||||||||||||
| {{dataField.title}} | ||||||||||||||||||||||
| <nc-required-label *ngIf="dataField.behavior.required" [isIn]="!dataField.disabled"></nc-required-label> | ||||||||||||||||||||||
|
|
@@ -75,8 +75,10 @@ | |||||||||||||||||||||
| </button> | ||||||||||||||||||||||
| </div> | ||||||||||||||||||||||
| </div> | ||||||||||||||||||||||
| <mat-hint class="i18n-hint-error" [ngClass]="{'mat-hint-disabled': formControlRef.disabled}" | ||||||||||||||||||||||
| *ngIf="!dataField.isInvalid(formControlRef) && hasHint()">{{dataField.description}}</mat-hint> | ||||||||||||||||||||||
| <mat-error class="i18n-hint-error" *ngIf="dataField.isInvalid(formControlRef)">{{getErrorMessage()}}</mat-error> | ||||||||||||||||||||||
| <div class="i18n-hint-wrapper" *ngIf="!dataField.isInvalid(formControlRef) && hasHint() || dataField.isInvalid(formControlRef)"> | ||||||||||||||||||||||
| <mat-hint class="i18n-hint-error" [ngClass]="{'mat-hint-disabled': formControlRef.disabled}" | ||||||||||||||||||||||
| *ngIf="!dataField.isInvalid(formControlRef) && hasHint()">{{dataField.description}}</mat-hint> | ||||||||||||||||||||||
| <mat-error class="i18n-hint-error" *ngIf="dataField.isInvalid(formControlRef)">{{getErrorMessage()}}</mat-error> | ||||||||||||||||||||||
| </div> | ||||||||||||||||||||||
|
Comment on lines
+78
to
+82
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick | 🔵 Trivial | 💤 Low value Clarify operator precedence in condition. The condition -<div class="i18n-hint-wrapper" *ngIf="!dataField.isInvalid(formControlRef) && hasHint() || dataField.isInvalid(formControlRef)">
+<div class="i18n-hint-wrapper" *ngIf="(!dataField.isInvalid(formControlRef) && hasHint()) || dataField.isInvalid(formControlRef)">📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||
| </div> | ||||||||||||||||||||||
| </ng-template> | ||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -49,6 +49,7 @@ | |||||||||||||||||
| padding: 0 1em; | ||||||||||||||||||
| font-size: 75%; | ||||||||||||||||||
| width: auto !important; | ||||||||||||||||||
| display: block; | ||||||||||||||||||
| } | ||||||||||||||||||
|
|
||||||||||||||||||
| .language-svg-wrapper { | ||||||||||||||||||
|
|
@@ -149,3 +150,12 @@ | |||||||||||||||||
| .i18n-bold-text { | ||||||||||||||||||
| font-weight: bold; | ||||||||||||||||||
| } | ||||||||||||||||||
|
|
||||||||||||||||||
| .padding-bottom-fix { | ||||||||||||||||||
| padding-bottom: 1em; | ||||||||||||||||||
| } | ||||||||||||||||||
|
|
||||||||||||||||||
| .i18n-hint-wrapper { | ||||||||||||||||||
| height: 18px; | ||||||||||||||||||
| margin-top: -3px; | ||||||||||||||||||
| } | ||||||||||||||||||
|
Comment on lines
+158
to
+161
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick | 🔵 Trivial | ⚡ Quick win Fixed height on text wrapper may cause truncation. The fixed
Consider using ♿ Proposed fix for flexible height .i18n-hint-wrapper {
- height: 18px;
+ min-height: 18px;
margin-top: -3px;
}📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| <mat-form-field [appearance]="dataField.materialAppearance" class="full-width" | ||
| <mat-form-field [appearance]="dataField.materialAppearance" class="full-width netgrif-chip-button-fix" | ||
| [ngClass]="{'netgrif-chip-fix' : dataField.value?.userValues?.size > 0}" color="primary"> | ||
| <mat-label class="netgrif-label" [ngClass]="{'netgrif-label-disabled': formControlRef.disabled}" | ||
| *ngIf="!showLargeLayout.value">{{ dataField.title }} | ||
|
|
@@ -30,6 +30,7 @@ | |
| aria-label="Autocomplete" | ||
| matInput | ||
| #input | ||
| disabled="true" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hardcoded disabled input removes typing capability. The Verify that removing the typing/filtering capability is intentional and document the expected UX: #!/bin/bash
# Description: Check if there's autocomplete or filtering logic that's now unused
ast-grep --pattern 'class UserListDefaultFieldComponent {
$$$
}'
rg -n 'matChipInputFor|matAutocomplete' --type=ts --type=html --glob='**/user-list**'🤖 Prompt for AI Agents |
||
| [placeholder]="dataField.placeholder" | ||
| [required]="dataField.behavior.required" | ||
| [matChipInputFor]="chipList"> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| .breadcrumbs { | ||
| margin: 4px; | ||
| margin: 4px 0; | ||
| -webkit-box-align: center; | ||
| align-items: center; | ||
| align-self: center; | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
| @@ -1,5 +1,5 @@ | ||||||||
| .case-view-container { | ||||||||
| margin: 16px 24px; | ||||||||
| //margin: 16px 24px; | ||||||||
|
Check warning on line 2 in projects/netgrif-components/src/lib/navigation/group-navigation-component-resolver/default-components/refs/default-case-ref-list-view/default-case-ref-list-view.component.scss
|
||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick | 🔵 Trivial | ⚡ Quick win Remove commented code instead of leaving it in place. Commented code reduces maintainability. If the margin is no longer needed, remove the line entirely. If it might be needed later, rely on version control history. 🧹 Proposed fix .case-view-container {
- //margin: 16px 24px;
height: calc(100% - 32px);📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||
| height: calc(100% - 32px); | ||||||||
| overflow: auto | ||||||||
| } | ||||||||
|
Comment on lines
1
to
5
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Search for similar height calculations that might be affected by margin changes
rg -n --type=scss 'calc\(100%\s*-\s*32px\)' -C2Repository: netgrif/components Length of output: 91 🏁 Script executed: #!/bin/bash
set -euo pipefail
# 1) Re-run the search for the exact height calculation (no invalid --type)
rg -n 'calc\(100%\s*-\s*32px\)' -S . -g'*.scss'
# 2) Find where this class is used (template/host markup)
# Locate the component files near the scss file by filename conventions
COMP_DIR="projects/netgrif-components/src/lib/navigation/group-navigation-component-resolver/default-components/refs/default-case-ref-list-view"
rg -n --hidden --glob '!**/node_modules/**' 'case-view-container' "$COMP_DIR" -SRepository: netgrif/components Length of output: 2311 🏁 Script executed: #!/bin/bash
set -euo pipefail
FILES=(
"projects/netgrif-components/src/lib/navigation/group-navigation-component-resolver/default-components/refs/default-case-ref-list-view/default-case-ref-list-view.component.scss"
"projects/netgrif-components/src/lib/navigation/group-navigation-component-resolver/default-components/tabbed/default-tabbed-case-view/default-tabbed-case-view.component.scss"
)
for f in "${FILES[@]}"; do
echo "==== $f ===="
nl -ba "$f" | sed -n '1,120p'
done
echo "==== rg margin near target ===="
rg -n "margin\s*:\s*16px|margin\s*:\s*16px\s+\d+px|margin\s*:\s*16px\s+\d+\s+\d+\s+\d+|margin\s*:" \
"projects/netgrif-components/src/lib/navigation/group-navigation-component-resolver/default-components/refs/default-case-ref-list-view/default-case-ref-list-view.component.scss"
echo "==== rg margin near tabbed ===="
rg -n "margin\s*:\s*16px|margin\s*:" \
"projects/netgrif-components/src/lib/navigation/group-navigation-component-resolver/default-components/tabbed/default-tabbed-case-view/default-tabbed-case-view.component.scss"Repository: netgrif/components Length of output: 310 🏁 Script executed: #!/bin/bash
set -euo pipefail
FILES=(
"projects/netgrif-components/src/lib/navigation/group-navigation-component-resolver/default-components/refs/default-case-ref-list-view/default-case-ref-list-view.component.scss"
"projects/netgrif-components/src/lib/navigation/group-navigation-component-resolver/default-components/tabbed/default-tabbed-case-view/default-tabbed-case-view.component.scss"
)
for f in "${FILES[@]}"; do
echo "==== $f ===="
if [ -f "$f" ]; then
cat -n "$f" | sed -n '1,80p'
else
echo "MISSING: $f" >&2
fi
done
echo "==== rg margin/padding in target files ===="
rg -n "margin\s*:|padding\s*:" \
"projects/netgrif-components/src/lib/navigation/group-navigation-component-resolver/default-components/refs/default-case-ref-list-view/default-case-ref-list-view.component.scss" \
"projects/netgrif-components/src/lib/navigation/group-navigation-component-resolver/default-components/tabbed/default-tabbed-case-view/default-tabbed-case-view.component.scss"Repository: netgrif/components Length of output: 4980 Adjust
🤖 Prompt for AI Agents |
||||||||
|
|
||||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -7,11 +7,11 @@ | |||||
|
|
||||||
| .search-panel { | ||||||
| margin-top: 16px; | ||||||
| padding: 8px 16px; | ||||||
| padding: 8px 0; | ||||||
| } | ||||||
|
|
||||||
| .content-margin { | ||||||
| margin: 8px 24px 0; | ||||||
| //margin: 8px 24px 0; | ||||||
|
Check warning on line 14 in projects/netgrif-components/src/lib/navigation/group-navigation-component-resolver/default-components/refs/default-task-view/default-task-view.component.scss
|
||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick | 🔵 Trivial | ⚡ Quick win Remove commented code instead of leaving it in place. Commented code reduces maintainability. If the margin is no longer needed, remove the line entirely rather than commenting it out. 🧹 Proposed fix-.content-margin {
- //margin: 8px 24px 0;
-}
+.content-margin {}Or remove the empty selector entirely if it serves no purpose. 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
| } | ||||||
|
|
||||||
| @media screen and (max-width: 599.99px) { | ||||||
|
|
||||||
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
🏁 Script executed:
Repository: netgrif/components
Length of output: 91
🏁 Script executed:
Repository: netgrif/components
Length of output: 2074
🏁 Script executed:
Repository: netgrif/components
Length of output: 11140
🏁 Script executed:
Repository: netgrif/components
Length of output: 87
Avoid global
!importanton.mat-form-field-label—it blocks focused/disabled and theming overridesprojects/netgrif-components/src/lib/data-fields/data-field.theme.scsssets.mat-form-field-label { color: $color-text-enabled !important; }(lines 18-20), which prevents later non-!importantlabel color rules from applying.!important, so they can’t override the global rule..netgrif-input-primary-fixlabel overrides around lines 447-452 also lack!important, so they’re likely ineffective under the global!important.!important(or make the competing state rules explicitly!important) so label coloring can actually vary by state/theme as intended.🤖 Prompt for AI Agents