Skip to content
Snippets Groups Projects
Commit e800d2b7 authored by Kawtar Laariche's avatar Kawtar Laariche
Browse files

#19: :recycle: refactor code

parent f60f0ef3
No related branches found
No related tags found
1 merge request!12Features/user auth manage my models
Showing
with 293 additions and 181 deletions
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
<mat-divider></mat-divider> <mat-divider></mat-divider>
<div style="margin: 14px"> <div class="mat-label-container">
<mat-label class="md-subhead" <mat-label class="md-subhead"
>Filter by category >Filter by category
<span <span
...@@ -39,14 +39,14 @@ ...@@ -39,14 +39,14 @@
<mat-divider></mat-divider> <mat-divider></mat-divider>
<div> <div>
<div style="margin: 14px"> <div class="mat-label-container">
<mat-label class="md-subhead" <mat-label class="md-subhead"
>Tags >Tags
<span class="title-icons icon-tags" alt="Tags" title="Tags"></span> <span class="title-icons icon-tags" alt="Tags" title="Tags"></span>
</mat-label> </mat-label>
</div> </div>
<mat-chip-set aria-label="Tags selection" style="padding: 8px"> <mat-chip-set aria-label="Tags selection" class="chip-set">
<mat-chip-option <mat-chip-option
*ngFor="let tag of visibleTags" *ngFor="let tag of visibleTags"
[selected]="tag.selected" [selected]="tag.selected"
......
...@@ -102,3 +102,11 @@ ...@@ -102,3 +102,11 @@
no-repeat 93% center !important; no-repeat 93% center !important;
width: calc(100%); width: calc(100%);
} }
.mat-label-container {
margin: 14px;
}
.chip-set {
padding: 8px;
}
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
</div></mat-grid-tile </div></mat-grid-tile
> >
<mat-grid-tile colspan="4"> <mat-grid-tile colspan="4">
<div style="width: 100%"> <div class="full-width">
<mat-grid-list cols="4" rowHeight="200px" gutterSize="16px"> <mat-grid-list cols="4" rowHeight="200px" gutterSize="16px">
<mat-grid-tile <mat-grid-tile
*ngFor=" *ngFor="
...@@ -73,8 +73,7 @@ ...@@ -73,8 +73,7 @@
<h3>Discover Graphene Dev02</h3> <h3>Discover Graphene Dev02</h3>
</div> </div>
<img <img
width="1280px" class="graphene-image"
style="display: block; margin: auto"
src="../../../../assets/images/graphene_grafik.png" src="../../../../assets/images/graphene_grafik.png"
/> />
</div> </div>
......
...@@ -164,27 +164,12 @@ ...@@ -164,27 +164,12 @@
border: none; border: none;
} }
/* @media (max-width: 1600px) { .full-width {
.slide-content { width: 100%;
padding: 0 200px !important;
}
}
@media (max-width: 1399px) {
.slide-content {
padding: 0 40px;
}
}
@media (max-width: 1024px) {
.slide-content {
padding: 0 70px;
}
} }
@media (max-width: 480px) { .graphene-image {
.slide-content { display: block;
padding: 0 50px; margin: auto;
} width: 1280px;
} }
*/
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<h6 class="sectiontitle9">MODEL ARTIFACTS</h6> <h6 class="sectiontitle9">MODEL ARTIFACTS</h6>
</div> </div>
</div> </div>
<div style="margin-left: 20px"> <div class="table-container">
<table mat-table [dataSource]="artifactDownload"> <table mat-table [dataSource]="artifactDownload">
<!-- Name Column --> <!-- Name Column -->
<ng-container matColumnDef="name"> <ng-container matColumnDef="name">
...@@ -17,11 +17,7 @@ ...@@ -17,11 +17,7 @@
<!-- Version Column --> <!-- Version Column -->
<ng-container matColumnDef="version"> <ng-container matColumnDef="version">
<th mat-header-cell *matHeaderCellDef>Version</th> <th mat-header-cell *matHeaderCellDef>Version</th>
<td <td mat-cell *matCellDef="let element" class="font-weight500">
mat-cell
*matCellDef="let element"
style="font-weight: 500 !important"
>
{{ element.version }} {{ element.version }}
</td> </td>
</ng-container> </ng-container>
...@@ -29,11 +25,7 @@ ...@@ -29,11 +25,7 @@
<!-- Modified on Column --> <!-- Modified on Column -->
<ng-container matColumnDef="size"> <ng-container matColumnDef="size">
<th mat-header-cell *matHeaderCellDef>Modified on</th> <th mat-header-cell *matHeaderCellDef>Modified on</th>
<td <td mat-cell *matCellDef="let element" class="font-weight500">
mat-cell
*matCellDef="let element"
style="font-weight: 500 !important"
>
{{ element.created | date: "MM/dd/yyyy" }} {{ element.created | date: "MM/dd/yyyy" }}
</td> </td>
</ng-container> </ng-container>
...@@ -41,11 +33,7 @@ ...@@ -41,11 +33,7 @@
<!-- Size Column --> <!-- Size Column -->
<ng-container matColumnDef="modified on"> <ng-container matColumnDef="modified on">
<th mat-header-cell *matHeaderCellDef>Size</th> <th mat-header-cell *matHeaderCellDef>Size</th>
<td <td mat-cell *matCellDef="let element" class="font-weight500">
mat-cell
*matCellDef="let element"
style="font-weight: 500 !important"
>
{{ element.size | formatBytes: 1 }} {{ element.size | formatBytes: 1 }}
</td> </td>
</ng-container> </ng-container>
......
...@@ -54,3 +54,11 @@ ...@@ -54,3 +54,11 @@
cursor: not-allowed; cursor: not-allowed;
background: #efefef; background: #efefef;
} }
.font-weight500 {
font-weight: 500;
}
.table-container {
margin-left: 20px;
}
...@@ -4,16 +4,12 @@ ...@@ -4,16 +4,12 @@
<h6 class="sectiontitle9">AUTHOR/PUBLISHER DETAILS</h6> <h6 class="sectiontitle9">AUTHOR/PUBLISHER DETAILS</h6>
</div> </div>
</div> </div>
<div style="margin-left: 20px"> <div class="table-container">
<table mat-table [dataSource]="dataSource"> <table mat-table [dataSource]="dataSource">
<!-- Name Column --> <!-- Name Column -->
<ng-container matColumnDef="name"> <ng-container matColumnDef="name">
<th mat-header-cell *matHeaderCellDef>Name</th> <th mat-header-cell *matHeaderCellDef>Name</th>
<td <td mat-cell *matCellDef="let element" class="font-weight500">
mat-cell
*matCellDef="let element"
style="font-weight: 500 !important"
>
{{ element?.name }} {{ element?.name }}
</td> </td>
</ng-container> </ng-container>
...@@ -21,11 +17,7 @@ ...@@ -21,11 +17,7 @@
<!-- Version Column --> <!-- Version Column -->
<ng-container matColumnDef="contact information"> <ng-container matColumnDef="contact information">
<th mat-header-cell *matHeaderCellDef>Contact Information</th> <th mat-header-cell *matHeaderCellDef>Contact Information</th>
<td <td class="font-weight500" mat-cell *matCellDef="let element">
mat-cell
*matCellDef="let element"
style="font-weight: 500 !important"
>
{{ element?.contact }} {{ element?.contact }}
</td> </td>
</ng-container> </ng-container>
......
...@@ -31,3 +31,11 @@ ...@@ -31,3 +31,11 @@
color: #671c9d; color: #671c9d;
background: #e8e5ec !important; background: #e8e5ec !important;
} }
.table-container {
margin-left: 20px;
}
.font-weight500 {
font-weight: 500 !important;
}
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<h6 class="sectiontitle9">SUPPORTING DOCUMENTS</h6> <h6 class="sectiontitle9">SUPPORTING DOCUMENTS</h6>
</div> </div>
</div> </div>
<div style="margin-left: 20px"> <div class="table-container">
<table mat-table [dataSource]="documents"> <table mat-table [dataSource]="documents">
<!-- Name Column --> <!-- Name Column -->
<ng-container matColumnDef="name"> <ng-container matColumnDef="name">
......
...@@ -31,3 +31,7 @@ ...@@ -31,3 +31,7 @@
color: #671c9d; color: #671c9d;
background: #e8e5ec !important; background: #e8e5ec !important;
} }
.table-container {
margin-left: 20px;
}
<div class="model-details-tabwrapper"> <div class="model-details-tabwrapper">
<div class="md-intro-container spacebetween" style="gap: 10px"> <div class="md-intro-container spacebetween">
<div style="height: 100%"> <div class="full-height">
<h6 class="sectiontitle9">LICENSE PROFILE</h6> <h6 class="sectiontitle9">LICENSE PROFILE</h6>
</div> </div>
<div <div class="spacebetween buttons-layout">
style="display: flex; align-items: center; gap: 10px"
class="spacebetween"
>
<button <button
[disabled]="!(isUserIdAvailable$ | async)" [disabled]="!(isUserIdAvailable$ | async)"
mat-stroked-button mat-stroked-button
...@@ -32,12 +29,11 @@ ...@@ -32,12 +29,11 @@
</div> </div>
</div> </div>
</div> </div>
<div style="margin-left: 20px" *ngIf="!modelLicense"> <div class="license-error" *ngIf="!modelLicense">
{{ modelLicenseError }} {{ modelLicenseError }}
</div> </div>
<!--<div *ngIf="(sharedDataService.licenseProfile$ | async) as modelLicense; else noLicenseTemplate">
--> <div class="license-content" *ngIf="modelLicense; else noLicenseTemplate">
<div style="margin-left: 20px" *ngIf="modelLicense; else noLicenseTemplate">
<pre class="licensedisplay"> <pre class="licensedisplay">
<span *ngIf="modelLicense?.keyword"><strong>keyword: </strong></span>{{ modelLicense?.keyword }} <span *ngIf="modelLicense?.keyword"><strong>keyword: </strong></span>{{ modelLicense?.keyword }}
<span *ngIf="modelLicense?.licenseName"><strong>licenseName: </strong></span>{{ modelLicense?.licenseName }} <span *ngIf="modelLicense?.licenseName"><strong>licenseName: </strong></span>{{ modelLicense?.licenseName }}
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
justify-content: flex-start; justify-content: flex-start;
align-content: center; align-content: center;
border-bottom: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5;
gap: 10px;
} }
.model-details-tabwrapper { .model-details-tabwrapper {
...@@ -48,3 +49,21 @@ button[disabled] { ...@@ -48,3 +49,21 @@ button[disabled] {
border-color: #d3d1d1; border-color: #d3d1d1;
cursor: not-allowed; cursor: not-allowed;
} }
.full-height {
height: 100%;
}
.buttons-layout {
display: flex;
align-items: center;
gap: 10px;
}
.license-error {
margin-left: 20px;
}
.license-content {
margin-left: 20px;
}
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<h6 class="sectiontitle9">SIGNATURE</h6> <h6 class="sectiontitle9">SIGNATURE</h6>
</div> </div>
</div> </div>
<div style="margin-left: 20px"> <div class="model-signature-content">
<pre> <pre>
{{ modelSignature }} {{ modelSignature }}
</pre> </pre>
......
...@@ -26,3 +26,7 @@ ...@@ -26,3 +26,7 @@
line-height: 30px; line-height: 30px;
padding: 0; padding: 0;
} }
.model-signature-content {
margin-left: 20px;
}
<div style="display: flex; flex-direction: column"> <div class="flex-column">
<div <div class="header-container">
style="display: flex; flex-direction: row; gap: 10px; align-items: center"
>
<div> <div>
<gp-headline [headlineTitle]="headlineTitle"></gp-headline> <gp-headline [headlineTitle]="headlineTitle"></gp-headline>
</div> </div>
<div style="flex: 1"> <div class="total-items-container">
<div style="margin: 24px; font-size: 14px; font-weight: normal"> <div class="total-items-text">
<span style="color: #2e2f2f" <span class="showing-text"
>Showing - >Showing -
<span style="color: #8f8f8f"> <span class="total-items-number">
{{ calculateStartIndex }} to {{ calculateStartIndex }} to
{{ calculateEndIndex }} {{ calculateEndIndex }}
of {{ totalItems }} Models</span of {{ totalItems }} Models</span
...@@ -18,15 +16,14 @@ ...@@ -18,15 +16,14 @@
</div> </div>
</div> </div>
<div *ngIf="showEntirePage" style="align-self: flex-end; margin-left: auto"> <div *ngIf="showEntirePage" class="entire-page-button-container">
<button <button
style="cursor: pointer" aria-label="Icon button with a menu icon"
aria-label="Example icon button with a menu icon"
(click)="onClickSeeBackEvent()" (click)="onClickSeeBackEvent()"
> >
<div style="display: flex; align-items: center"> <div class="back-icon">
<mat-icon>arrow_back_ios</mat-icon> <mat-icon>arrow_back_ios</mat-icon>
<span style="font-size: 16px">Back</span> <span>Back</span>
</div> </div>
</button> </button>
</div> </div>
......
.material-icons { .material-icons {
font-size: 20px; font-size: 20px;
} }
.flex-column {
display: flex;
flex-direction: column;
}
.showing-text {
color: #2e2f2f;
}
.total-items-text {
margin: 24px;
font-size: 14px;
font-weight: normal;
}
.total-items-number {
color: #8f8f8f;
}
.total-items-container {
flex: 1;
}
.back-button-container {
align-self: flex-end;
margin-left: auto;
button: {
cursor: pointer;
}
}
.back-icon {
display: flex;
align-items: center;
span {
font-size: 16px;
}
}
.header-container {
display: flex;
flex-direction: row;
gap: 10px;
align-items: center;
}
<div <div class="flex-column" *ngIf="solution$ | async as data">
style="display: flex; flex-direction: column" <div class="header-container">
*ngIf="solution$ | async as data" <div class="header-container-top">
>
<div style="display: flex; flex-direction: column; padding: 20px">
<div
style="
display: flex;
flex-direction: row;
align-items: center;
justify-items: center;
gap: 8px;
"
>
<span class="md-headline5">Manage {{ data.name }}</span <span class="md-headline5">Manage {{ data.name }}</span
>| >|
...@@ -22,40 +11,28 @@ ...@@ -22,40 +11,28 @@
></gp-version-dropdown> ></gp-version-dropdown>
| |
<div <div
style=" class="author-publisher-container"
display: flex;
flex-direction: row;
align-items: center;
justify-items: center;
"
*ngIf="sharedWith$ | async as sharedWithData" *ngIf="sharedWith$ | async as sharedWithData"
> >
<span>Author and Publisher - &nbsp; </span> <span>Author and Publisher - &nbsp; </span>
<img <img
style="width: 27px; height: 27px" class="user-profile-black-image"
src="../../../../assets/images/user-profile-black.png" src="../../../../assets/images/user-profile-black.png"
/> />
<div style="display: flex; flex-direction: row"> <div class="flex-row">
<button <button
mat-icon-button mat-icon-button
[matMenuTriggerFor]="menu" [matMenuTriggerFor]="menu"
aria-label="Example icon-button with a menu" aria-label="icon-button with a menu"
> >
<mat-icon>more_horiz</mat-icon> <mat-icon>more_horiz</mat-icon>
</button> </button>
<mat-menu #menu="matMenu" xPosition="after"> <mat-menu #menu="matMenu" xPosition="after">
<mat-list role="list" *ngFor="let item of sharedWithData"> <mat-list role="list" *ngFor="let item of sharedWithData">
<mat-list-item role="listitem" style="font-size: 14px"> <mat-list-item role="listitem" class="font-size-text">
<div <div class="user-profile-black-image-container">
style="
display: flex;
align-items: center;
justify-items: center;
gap: 4px;
"
>
<img <img
style="width: 27px; height: 27px; display: inline-block" class="user-profile-black-image"
src="../../../../assets/images/user-profile-black.png" src="../../../../assets/images/user-profile-black.png"
/> />
<span [title]="[item.firstName, item.lastName].join('')" <span [title]="[item.firstName, item.lastName].join('')"
...@@ -87,15 +64,10 @@ ...@@ -87,15 +64,10 @@
<div class="workflow-left-header workflow-header">MANAGEMENT OPTIONS</div> <div class="workflow-left-header workflow-header">MANAGEMENT OPTIONS</div>
<div <div
*ngIf="selectedRevision$ | async as selectedRevision" *ngIf="selectedRevision$ | async as selectedRevision"
style=" class="static-tabs"
display: flex;
flex-direction: column !important;
justify-content: center !important;
margin-left: 16px;
"
> >
<div> <div>
<span class="tab-box" style="font-size: 14px">On - Boarding</span> <span class="tab-box font-size-text">On - Boarding</span>
</div> </div>
<div> <div>
<span class="version-on-boarded" <span class="version-on-boarded"
...@@ -106,36 +78,19 @@ ...@@ -106,36 +78,19 @@
> >
</div> </div>
</div> </div>
<nav mat-tab-nav-bar class="margin: 20px 0 20px 0;" [tabPanel]="tabPanel"> <nav mat-tab-nav-bar class="nav-share-with-tab" [tabPanel]="tabPanel">
<a <a
mat-tab-link mat-tab-link
routerLink="shareWithTeam" routerLink="shareWithTeam"
routerLinkActive="is-active" routerLinkActive="is-active"
style="padding-top: 2px; padding-bottom: 8px" class="share-with-tab-container"
> >
<mat-icon fontIcon="share"></mat-icon> <mat-icon fontIcon="share"></mat-icon>
<div <div class="share-with-tab">
style=" <span class="tab-box font-size-text"> Share with team</span>
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 2px;
margin-left: 14px;
"
>
<span class="tab-box" style="font-size: 14px">
Share with team</span
>
<span <span
*ngIf="sharedWith$ | async as sharedWithData" *ngIf="sharedWith$ | async as sharedWithData"
style=" class="share-with-text"
margin: 0;
padding: 0;
font-size: 12px;
line-height: 16px;
font-weight: 400;
letter-spacing: 0;
"
>Shared with {{ sharedWithData.length }} co-workers</span >Shared with {{ sharedWithData.length }} co-workers</span
> >
</div> </div>
...@@ -157,7 +112,7 @@ ...@@ -157,7 +112,7 @@
: 'authorsimg-inactive' : 'authorsimg-inactive'
" "
></span ></span
><span class="tab-box" style="font-size: 14px" ><span class="tab-box font-size-text"
>Manage Publisher/Authors</span >Manage Publisher/Authors</span
></a ></a
> >
...@@ -175,17 +130,11 @@ ...@@ -175,17 +130,11 @@
: 'companyimg-inactive' : 'companyimg-inactive'
" "
></span ></span
><span class="tab-box" style="font-size: 14px" ><span class="tab-box font-size-text">Publish to Marketplace</span></a
>Publish to Marketplace</span
></a
> >
<a mat-tab-link routerLink="deleteModel" routerLinkActive="is-active" <a mat-tab-link routerLink="deleteModel" routerLinkActive="is-active"
><mat-icon fontIcon="delete"></mat-icon ><mat-icon fontIcon="delete"></mat-icon
><span ><span class="tab-box delete-model-tab-text">Delete Model</span></a
class="tab-box"
style="font-size: 14px; margin-left: 15px !important"
>Delete Model</span
></a
> >
</nav> </nav>
<mat-tab-nav-panel #tabPanel></mat-tab-nav-panel> <mat-tab-nav-panel #tabPanel></mat-tab-nav-panel>
......
...@@ -166,3 +166,88 @@ mat-sidenav-content { ...@@ -166,3 +166,88 @@ mat-sidenav-content {
font-weight: 600; font-weight: 600;
color: #671c9d; color: #671c9d;
} }
.flex-column {
display: flex;
flex-direction: column;
}
.flex-row {
display: flex;
flex-direction: row;
}
.header-container {
display: flex;
flex-direction: column;
padding: 20px;
}
.user-profile-black-image {
width: 27px;
height: 27px;
}
.user-profile-black-image-container {
display: flex;
align-items: center;
justify-items: center;
gap: 4px;
}
.font-size-text {
font-size: 14px;
}
.header-container-top {
display: flex;
flex-direction: row;
align-items: center;
justify-items: center;
gap: 8px;
}
.author-publisher-container {
display: flex;
flex-direction: row;
align-items: center;
justify-items: center;
}
.share-with-text {
margin: 0;
padding: 0;
font-size: 12px;
line-height: 16px;
font-weight: 400;
letter-spacing: 0;
}
.share-with-tab {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 2px;
margin-left: 14px;
}
.static-tabs {
display: flex;
flex-direction: column !important;
justify-content: center !important;
margin-left: 16px;
}
.share-with-tab-container {
padding-top: 2px;
padding-bottom: 8px;
}
.nav-share-with-tab {
margin: 20px 0 20px 0;
}
.delete-model-tab-text {
font-size: 14px;
margin-left: 15px !important;
}
...@@ -24,27 +24,24 @@ ...@@ -24,27 +24,24 @@
(click)="openRateDialog()" (click)="openRateDialog()"
[disabled]="!userId" [disabled]="!userId"
class="mdl-button mdl-js-button btn-secondary" class="mdl-button mdl-js-button btn-secondary"
style="cursor: pointer"
> >
Rate This Model Rate This Model
</button> </button>
</div> </div>
</div> </div>
<div class="rating-container-right"> <div class="rating-container-right">
<div style="display: flex; flex-direction: column; width: 100%"> <div class="flex-column full-width">
<div <div
class="progress-wrapper" class="progress-wrapper"
*ngFor="let count of ratingCounts; let i = index" *ngFor="let count of ratingCounts; let i = index"
> >
<span style="display: flex; flex-direction: column" <span class="flex-column">{{ 5 - i }} star</span>
>{{ 5 - i }} star</span
>
<mat-progress-bar <mat-progress-bar
mode="determinate" mode="determinate"
[value]="perRatingCounts[i]" [value]="perRatingCounts[i]"
style="width: 25%; margin: 10px" class="progress-bar"
></mat-progress-bar> ></mat-progress-bar>
<span style="font-weight: bold">{{ count }}</span> <span class="progress-bar-count">{{ count }}</span>
</div> </div>
</div> </div>
</div> </div>
...@@ -68,10 +65,7 @@ ...@@ -68,10 +65,7 @@
<br /> <br />
<div class="discussion-add-comment" aria-hidden="false"> <div class="discussion-add-comment" aria-hidden="false">
<!--comments section--> <!--comments section-->
<div <div class="flex-column" *ngFor="let comment of comments">
style="display: flex; flex-direction: column"
*ngFor="let comment of comments"
>
<div class="discussion-container"> <div class="discussion-container">
<div> <div>
<img src="../../../../assets/images/user-profile-black.png" /> <img src="../../../../assets/images/user-profile-black.png" />
...@@ -111,7 +105,7 @@ ...@@ -111,7 +105,7 @@
>{{ comment.text }}</textarea >{{ comment.text }}</textarea
> >
<div <div
style="display: flex; width: 100%" class="flex-row full-width"
*ngIf=" *ngIf="
isEditComment && comment.commentId === editedCommentId isEditComment && comment.commentId === editedCommentId
" "
...@@ -123,17 +117,15 @@ ...@@ -123,17 +117,15 @@
Cancel Cancel
</button> </button>
<button <button
style="margin-left: auto"
(click)="onClickEditPostComment(comment)" (click)="onClickEditPostComment(comment)"
class="mdl-button mdl-js-button btn-primary" class="mdl-button mdl-js-button btn-primary flexible-margin-left"
> >
save changes save changes
</button> </button>
</div> </div>
<div> <div>
<div <div
style="display: flex" class="discussionformbox flex-row"
class="discussionformbox"
*ngIf="showReplyText" *ngIf="showReplyText"
> >
<div class="mdl-textfield mdl-js-textfield"> <div class="mdl-textfield mdl-js-textfield">
...@@ -145,17 +137,13 @@ ...@@ -145,17 +137,13 @@
</div> </div>
<button <button
style="margin-top: 4px"
*ngIf="!showReplyText" *ngIf="!showReplyText"
class="mdl-button mdl-js-button btn-secondary" class="mdl-button mdl-js-button btn-secondary reply-button"
(click)="onClickShowReply()" (click)="onClickShowReply()"
> >
Reply Reply
</button> </button>
<div <div class="flex-row full-width" *ngIf="showReplyText">
style="display: flex; width: 100%"
*ngIf="showReplyText"
>
<button <button
*ngIf="showReplyText" *ngIf="showReplyText"
(click)="OnClickCancelReply()" (click)="OnClickCancelReply()"
...@@ -164,9 +152,8 @@ ...@@ -164,9 +152,8 @@
Cancel Cancel
</button> </button>
<button <button
style="margin-left: auto"
(click)="OnClickPostReply(comment)" (click)="OnClickPostReply(comment)"
class="mdl-button mdl-js-button btn-primary" class="mdl-button mdl-js-button btn-primary post-reply-button"
> >
Post reply Post reply
</button> </button>
...@@ -176,7 +163,7 @@ ...@@ -176,7 +163,7 @@
</div> </div>
<!--replies section--> <!--replies section-->
<div <div
style="margin-left: 40px; display: flex; flex-direction: row" class="comment-replies-container"
*ngFor="let reply of comment.replies" *ngFor="let reply of comment.replies"
> >
<div class="discussion-container"> <div class="discussion-container">
...@@ -221,7 +208,7 @@ ...@@ -221,7 +208,7 @@
>{{ reply.text }}</textarea >{{ reply.text }}</textarea
> >
<div <div
style="display: flex; width: 100%" class="flex-row full-width"
*ngIf=" *ngIf="
isEditComment && reply.commentId === editedCommentId isEditComment && reply.commentId === editedCommentId
" "
...@@ -233,9 +220,8 @@ ...@@ -233,9 +220,8 @@
Cancel Cancel
</button> </button>
<button <button
style="margin-left: auto"
(click)="onClickEditPostComment(comment)" (click)="onClickEditPostComment(comment)"
class="mdl-button mdl-js-button btn-primary" class="mdl-button mdl-js-button btn-primary flexible-margin-left"
> >
save changes save changes
</button> </button>
......
...@@ -417,15 +417,12 @@ ...@@ -417,15 +417,12 @@
} }
.mdl-textfield__input { .mdl-textfield__input {
/* border: none; */
/* border-bottom: 1px solid rgba(0,0,0,.12); */
display: block; display: block;
font-size: 16px; font-size: 16px;
font-family: "Helvetica", "Arial", sans-serif; font-family: "Helvetica", "Arial", sans-serif;
margin: 0; margin: 0;
padding: 4px 0; padding: 4px 0;
width: 100%; width: 100%;
/* background: 0 0; */
text-align: left; text-align: left;
color: inherit; color: inherit;
} }
...@@ -433,3 +430,44 @@ ...@@ -433,3 +430,44 @@
button { button {
cursor: pointer; cursor: pointer;
} }
.flex-column {
display: flex;
flex-direction: column;
}
.flex-row {
display: flex;
flex-direction: row;
}
.full-width {
width: 100;
}
.progress-bar {
width: 25%;
margin: 10px;
}
.progress-bar-count {
font-weight: bold;
}
.reply-button {
margin-top: 4px;
}
.post-reply-button {
margin-left: auto;
}
.comment-replies-container {
margin-left: 40px;
display: flex;
flex-direction: row;
}
.flexible-margin-left {
margin-left: auto;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment