This commit is contained in:
leejinho 2020-02-14 17:52:13 +09:00
commit f14dd52877
3 changed files with 72 additions and 55 deletions

View File

@ -15,13 +15,15 @@
<mat-tab-group animationDuration="0ms" vertical> <mat-tab-group animationDuration="0ms" vertical>
<mat-tab *ngIf="data.content.text"> <mat-tab *ngIf="data.content.text">
<ng-template mat-tab-label> <ng-template mat-tab-label>
<mat-checkbox #chkText> </mat-checkbox> <mat-checkbox #chkText checked="true"> </mat-checkbox>
<span class="title-text">{{ <span class="title-text">{{
'common.file.clipboardType.text' | translate 'common.file.clipboardType.text' | translate
}}</span> }}</span>
</ng-template> </ng-template>
<perfect-scrollbar> <perfect-scrollbar>
<div style="white-space: pre-wrap;">{{ data.content.text }}</div> <div class="clipboard-text" style="white-space: pre-wrap;">
{{ data.content.text }}
</div>
</perfect-scrollbar> </perfect-scrollbar>
</mat-tab> </mat-tab>
<!-- <mat-tab *ngIf="data.content.rtf"> <!-- <mat-tab *ngIf="data.content.rtf">
@ -59,7 +61,7 @@
</ng-template> </ng-template>
<perfect-scrollbar> <perfect-scrollbar>
<div> <div class="clipboard-img">
<img [src]="data.content.imageDataUrl" /> <img [src]="data.content.imageDataUrl" />
</div> </div>
</perfect-scrollbar> </perfect-scrollbar>

View File

@ -1,4 +1,5 @@
.clipboard-frame { .clipboard {
&-frame {
padding: 16px; padding: 16px;
height: 100%; height: 100%;
min-width: 500px; min-width: 500px;
@ -52,4 +53,12 @@
margin-left: 4px; margin-left: 4px;
} }
} }
}
&-text {
padding: 0 10px;
white-space: pre-wrap;
}
&-img {
padding: 0 10px;
}
} }

View File

@ -407,6 +407,8 @@ $daesang-grey: (
mat-tab-group[vertical] { mat-tab-group[vertical] {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
.mat-tab-header {
border-bottom: none;
.mat-tab-labels { .mat-tab-labels {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -414,18 +416,22 @@ $daesang-grey: (
.mat-tab-label { .mat-tab-label {
justify-content: flex-start; justify-content: flex-start;
padding: 0; padding: 0;
&[aria-selected='true'] {
opacity: 1;
}
.mat-checkbox { .mat-checkbox {
margin-right: 8px; margin-right: 8px;
} }
} }
} }
}
.mat-ink-bar { .mat-ink-bar {
opacity: 0; opacity: 0;
} }
.mat-tab-body-wrapper { .mat-tab-body-wrapper {
flex: 1 1 auto; flex: 1 1 auto;
border-left: 1px solid #dddddd; border-left: 1px solid #dddddd;
padding: 0 10px; padding: 0;
} }
} }