Commit fddd5c14 by GD-A-150752

message-engine-css

parent e8db4cc5
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<label>{{message.SentBy.Name[0]}}</label> <label>{{message.SentBy.Name[0]}}</label>
</div> </div>
<div class="ui-g-12 ui-md-11"> <div class="ui-g-12 ui-md-11">
<div [innerHTML]="message.MessageContent"></div> <div class="break-word" [innerHTML]="message.MessageContent"></div>
<div class="attachments"> <div class="attachments">
<a *ngFor="let attachment of message.Attachments" <a *ngFor="let attachment of message.Attachments"
href="{{apiUrl+attachment.File.URI}}" href="{{apiUrl+attachment.File.URI}}"
......
...@@ -2,6 +2,10 @@ a { ...@@ -2,6 +2,10 @@ a {
color: rgb(3, 160, 231); color: rgb(3, 160, 231);
} }
.break-word {
word-break: break-all;
}
::ng-deep { ::ng-deep {
.ui-fileupload-buttonbar { .ui-fileupload-buttonbar {
padding: 0 !important; padding: 0 !important;
...@@ -13,6 +17,12 @@ a { ...@@ -13,6 +17,12 @@ a {
} }
} }
.ui-fileupload-content {
ul {
word-break: break-all;
}
}
.ui-fileupload-row { .ui-fileupload-row {
div:nth-child(n+3) { div:nth-child(n+3) {
display: none; display: none;
......
...@@ -271,15 +271,20 @@ export class MessageEngineApplicantViewComponent extends BaseComponent implement ...@@ -271,15 +271,20 @@ export class MessageEngineApplicantViewComponent extends BaseComponent implement
* If message content is empty, generate an error message for it. * If message content is empty, generate an error message for it.
*/ */
IsMessageEmpty(): boolean { IsMessageEmpty(): boolean {
const editElement = this.messageEditor.getQuill().container;
const editor = editElement.getElementsByClassName('ql-editor');
if (this.showPlainText(this.Message.MessageContent) === '') { if (this.showPlainText(this.Message.MessageContent) === '') {
this.msgService.addErrorMessages( this.msgService.addErrorMessages(
[this.utilsService.getValidationMessage('required', 'Message Content', {})] [this.utilsService.getValidationMessage('required', 'Message Content', {})]
); );
this.messageEditor.getQuill() this.messageEditor.getQuill()
.focus(); .focus();
editor[0].classList.add('error-block');
return true; return true;
} }
editor[0].classList.remove('error-block');
return false; return false;
} }
......
...@@ -491,3 +491,7 @@ app-message-engine-applicant-view { ...@@ -491,3 +491,7 @@ app-message-engine-applicant-view {
.h-45 { .h-45 {
height: 45px !important; height: 45px !important;
} }
.error-block {
border: 1px solid red !important;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment