Skip to content
This repository has been archived by the owner on Apr 26, 2020. It is now read-only.

Commit

Permalink
fix: comment content text ellipsis
Browse files Browse the repository at this point in the history
Change-Id: I92a1f67defe9f3d1d66daa9c8e1bd3cebe99b47c
  • Loading branch information
myml committed Dec 25, 2018
1 parent 04a34a2 commit fed88a5
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/ui/web_window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ void WebWindow::showWindow()
} else {
this->setMinimumSize(960, 716);
}
this->setMinimumSize(960, 716);
this->show();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,16 @@
}
}
.content {
min-height: 4rem;
max-height: 8rem;
/* autoprefixer: off */
// autoprefixer remove -webkit-box-orient
min-height: 4.5rem;
overflow: hidden;
word-wrap: break-word;
user-select: text;

display: -webkit-box;
-webkit-line-clamp: 8;
-webkit-box-orient: vertical;
}
.like {
display: flex;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<dialog #dialog>
<dstore-close-button [dialog]="dialog"></dstore-close-button>
<ng-container *ngIf="(app$ | async) as app; else: loading">
<ng-container *ngIf="(app$ | async) as app; else loading">
<div class="title" i18n>Edit Comment</div>
<div class="app">
<img class="icon" [src]="app.icon" />
Expand All @@ -24,7 +24,7 @@
</div>
</div>
<div class="control">
<ng-container *ngIf="!deleteConfirm; else: Delete">
<ng-container *ngIf="!deleteConfirm; else Delete">
<button (click)="deleteConfirm = true" i18n>Delete</button>
<div *ngIf="app.active">
<button (click)="closed()" i18n>Cancel</button> &nbsp;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
.content {
border: 1px solid var(--main-item-hr-color);
textarea {
width: 25rem;
width: 30rem;
height: 10rem;
border: 0;
outline: none;
Expand Down Expand Up @@ -53,5 +53,5 @@

.empty {
width: 400px;
height: 380px;
height: 300px;
}

0 comments on commit fed88a5

Please sign in to comment.