세로형 mat-tab 라인 수정

This commit is contained in:
khk 2020-02-14 17:33:37 +09:00
parent 3f43eb802a
commit 23507a52aa
3 changed files with 72 additions and 55 deletions

View File

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

View File

@ -1,55 +1,64 @@
.clipboard-frame {
padding: 16px;
height: 100%;
min-width: 500px;
position: relative;
.mat-dialog-container {
.clipboard {
&-frame {
padding: 16px;
height: 100%;
min-width: 500px;
position: relative;
}
.mat-card-header {
position: relative;
width: 100%;
border-bottom: 1px solid #dddddd;
margin-bottom: 12px;
.btn-dialog-close {
font-size: 20px;
display: flex;
margin-left: auto;
align-self: flex-start;
color: #444444;
.mat-dialog-container {
position: relative;
}
}
.mat-card-content {
flex: 0 0 auto;
display: flex;
align-items: flex-start;
height: calc(100% - 100px);
border-bottom: 1px solid #dddddd;
.clipboard-tab {
.mat-card-header {
position: relative;
width: 100%;
height: 100%;
.mat-tab-group {
border-bottom: 1px solid #dddddd;
margin-bottom: 12px;
.btn-dialog-close {
font-size: 20px;
display: flex;
flex-direction: row;
margin-left: auto;
align-self: flex-start;
color: #444444;
}
}
.mat-card-content {
flex: 0 0 auto;
display: flex;
align-items: flex-start;
height: calc(100% - 100px);
border-bottom: 1px solid #dddddd;
.clipboard-tab {
position: relative;
height: 100%;
width: 100%;
height: 100%;
.mat-tab-group {
display: flex;
flex-direction: row;
position: relative;
height: 100%;
width: 100%;
}
}
}
.button-farm {
text-align: right;
position: absolute;
width: 100%;
bottom: 10px;
margin: 0 -16px;
.mat-primary {
margin-left: 4px;
}
}
}
.button-farm {
text-align: right;
position: absolute;
width: 100%;
bottom: 10px;
margin: 0 -16px;
.mat-primary {
margin-left: 4px;
}
&-text {
padding: 0 10px;
white-space: pre-wrap;
}
&-img {
padding: 0 10px;
}
}

View File

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