-
Notifications
You must be signed in to change notification settings - Fork 21
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
fix(*): Improved layout of note details in mobile view #1290
Merged
Merged
Changes from 6 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
aef984a
fix(*): Improved layout of note details in mobile view
TheSlimvReal 033b539
Merge branch 'master' into note_attendance_mobile
TheSlimvReal 1b3f36e
Center the indicator
Schottkyc137 3b48fe2
replace fxFlex with flex
Schottkyc137 db3f04c
Merge remote-tracking branch 'origin/note_attendance_mobile' into not…
Schottkyc137 c76b329
Merge branch 'master' into note_attendance_mobile
sleidig 961d250
better margins
sleidig f572296
Merge branch 'master' into note_attendance_mobile
sleidig 95aa9e7
Merge remote-tracking branch 'origin/master' into note_attendance_mobile
Schottkyc137 4075894
fix styles
Schottkyc137 652e779
Implement a working prototype for a new design
Schottkyc137 2480156
Rework basic design
Schottkyc137 de6e8f7
Component works different on screens with different sizes
Schottkyc137 dab06b6
Add some comments
Schottkyc137 12bb9de
Merge remote-tracking branch 'origin/master' into note_attendance_mobile
Schottkyc137 49f7dea
removed justify content to have elements left aligned
TheSlimvReal 04ecb1b
moved meeting attendance section to own component
TheSlimvReal 21a9c29
fixed e2e test
TheSlimvReal 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 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
39 changes: 19 additions & 20 deletions
39
.../notes/note-details/child-meeting-attendance/child-meeting-note-attendance.component.html
This file contains 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,30 +1,29 @@ | ||
<div fxLayout="col" fxLayoutGap="4px" fxLayoutAlign="start baseline"> | ||
<div class="actions" fxFlex="40px" *ngIf="!disabled"> | ||
<button mat-icon-button (click)="remove.emit()"> | ||
<fa-icon icon="times"></fa-icon> | ||
</button> | ||
</div> | ||
<div class="attendance-box"> | ||
|
||
<div class="content-wrapper"> | ||
<app-child-block [entityId]="childId"></app-child-block> | ||
|
||
<div fxFlex="250px"> | ||
<app-attendance-status-select | ||
[(value)]="attendance.status" | ||
(valueChange)="change.emit(attendance)" | ||
[disabled]="disabled" | ||
> | ||
</app-attendance-status-select> | ||
</div> | ||
|
||
<app-child-block [entityId]="childId" fxFlex> </app-child-block> | ||
<mat-form-field class="flex-grow"> | ||
<input | ||
matInput | ||
i18n-placeholder | ||
placeholder="Remarks" | ||
name="remarks" | ||
type="text" | ||
[(ngModel)]="attendance.remarks" | ||
[disabled]="disabled" | ||
/> | ||
</mat-form-field> | ||
</div> | ||
|
||
<mat-form-field class="dense-form-field" fxFlex> | ||
<input | ||
matInput | ||
i18n-placeholder | ||
placeholder="Remarks" | ||
name="remarks" | ||
type="text" | ||
[(ngModel)]="attendance.remarks" | ||
[disabled]="disabled" | ||
/> | ||
</mat-form-field> | ||
<button mat-icon-button> | ||
<fa-icon *ngIf="!disabled" icon="trash" (click)="remove.emit()"></fa-icon> | ||
</button> | ||
</div> |
This file contains 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 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 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 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 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
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.
isn't this something FlexLayoutModule can provide?
@Schottkyc137, wanna keep an eye on this while refactoring and cleaning up the styles?
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.
I actually do believe that this is a better way of doing things (I am using a similar approach while refactoring). I actually think that we should get rid of FxFlex altogether. We will probably have a discussion about this topic when I'm ready for review but the basic reasoning is that CSS flex classes are in most cases (all that I have encountered in the app) just as potent and – at least from my point of view – more clear than fxFlex. The latter works using "magic" by using styles that are added dynamically via scripts. This is almost never needed.