-
Notifications
You must be signed in to change notification settings - Fork 236
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🚧 added zoom to frame and lower z index for connectors
- Loading branch information
1 parent
308f11a
commit c8868cc
Showing
14 changed files
with
173 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 25 additions & 23 deletions
48
...tures/convs-mgr/stories/blocks/library/main/src/lib/components/block/block.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,58 @@ | ||
.block { | ||
position: relative; | ||
cursor: move; | ||
position: relative; | ||
cursor: move; | ||
} | ||
|
||
.avatar-img { | ||
border-radius: 50%; | ||
width: 30px; | ||
height: 30px; | ||
border-radius: 50%; | ||
width: 30px; | ||
height: 30px; | ||
} | ||
|
||
.block-title-container { | ||
align-items: center; | ||
align-items: center; | ||
} | ||
|
||
.outer:hover { | ||
cursor:move; | ||
cursor: move; | ||
} | ||
|
||
.icon-color { | ||
color: var(--convs-mgr-color-primary-purple) | ||
color: var(--convs-mgr-color-primary-purple) | ||
} | ||
|
||
.block-title { | ||
font-weight: 600; | ||
font-size: small; | ||
margin: 0 0 0 .4em; | ||
color: var(--convs-mgr-color-text-black); | ||
font-weight: 600; | ||
font-size: small; | ||
margin: 0 0 0 .4em; | ||
color: var(--convs-mgr-color-text-black); | ||
} | ||
|
||
.outer { | ||
padding: 10px; | ||
padding-bottom: 0; | ||
padding: 10px; | ||
padding-bottom: 0; | ||
} | ||
|
||
.block-card { | ||
border-radius: 10px; | ||
padding: 0%; | ||
box-shadow: 0 3px 10px rgb(0 0 0 / 0.2); | ||
border-radius: 10px; | ||
padding: 0%; | ||
box-shadow: 0 3px 10px rgb(0 0 0 / 0.2); | ||
} | ||
|
||
.icons { | ||
cursor: pointer; | ||
cursor: pointer; | ||
} | ||
|
||
.fa-clone { | ||
padding-right: 10px; | ||
padding-right: 10px; | ||
} | ||
|
||
.fa-clone, .fa-trash-alt { | ||
color: var(--convs-mgr-color-medium-shade); | ||
.fa-clone, | ||
.fa-trash-alt { | ||
color: var(--convs-mgr-color-medium-shade); | ||
} | ||
|
||
.fa-clone:hover, .fa-trash-alt:hover { | ||
color: var(--convs-mgr-color-primary-purple); | ||
.fa-clone:hover, | ||
.fa-trash-alt:hover { | ||
color: var(--convs-mgr-color-primary-purple); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../library/text-message-block/src/lib/components/message-block/message-block.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
...ures/convs-mgr/stories/editor/src/lib/components/editor-frame/editor-frame.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
<div fxFlexFill #editor id="editor-frame" style="position: relative;"> | ||
<ng-template #viewport></ng-template> | ||
<div class="frame-bg" fxLayout="column" fxLayoutALign="start" fxFlexFill> | ||
<div #editor id="editor-frame" style="position: relative;" fxFlex="95"> | ||
<ng-template #viewport></ng-template> | ||
</div> | ||
</div> |
44 changes: 20 additions & 24 deletions
44
...ures/convs-mgr/stories/editor/src/lib/components/editor-frame/editor-frame.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,26 @@ | ||
#editor-frame { | ||
border-width: 2px; | ||
border-style: solid; | ||
border-color: lightgrey; | ||
#editor-frame .block { | ||
position: absolute; | ||
} | ||
|
||
.block { | ||
text-align: center; | ||
cursor: move; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
position: absolute; | ||
} | ||
|
||
app-message-block { | ||
position: relative; | ||
} | ||
|
||
.frame-bg { | ||
background-color: white; | ||
background: papayawhip; | ||
background-image: url(^/assets/bg/pattern-bg.png); | ||
background-size: cover; | ||
background-repeat: no-repeat; | ||
position: relative; | ||
} | ||
|
||
#editor-frame .block { | ||
position: absolute; | ||
} | ||
.block { | ||
text-align: center; | ||
cursor: move; | ||
|
||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
|
||
position: absolute; | ||
} | ||
|
||
app-message-block { | ||
position: relative; | ||
} | ||
|
||
overflow: scroll; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 36 additions & 21 deletions
57
libs/features/convs-mgr/stories/editor/src/lib/pages/story-editor/story-editor.page.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,47 @@ | ||
<convl-page [breadcrumbs]="breadcrumbs" [title]="pageName" [nomarg]="true"> | ||
|
||
<!-- Convl page subbar --> | ||
<div subbar fxLayout="row" fxLayoutGap="10px" fxLayoutAlign="space-between center"> | ||
<button [disabled]="!stateSaved" (click)="save()" mat-flat-button class="subbar-btn"> | ||
<span *ngIf="stateSaved; else saving"> Save </span> | ||
<ng-template #saving> | ||
<span fxLayout="row" fxLayoutAlign="start center" fxLayoutGap="10px"> | ||
<span> Saving story</span> | ||
<mat-spinner diameter="20"></mat-spinner> | ||
</span> | ||
</ng-template> | ||
</button> | ||
|
||
<button [disabled]="!storyHasBeenSaved" (click)="addToChannel()" mat-flat-button class="add-channel-btn"> | ||
<span> Add to channel </span> | ||
</button> | ||
</div> | ||
|
||
<!-- Main body page --> | ||
<div fxLayout="row" fxFlexFill> | ||
|
||
<div fxFlex="15"> | ||
<div fxFlex="20"> | ||
<convl-blocks-library *ngIf="frame" [frame]="frame"> | ||
</convl-blocks-library> | ||
</div> | ||
|
||
<convl-story-editor-frame (frameLoaded)="onFrameViewLoaded($event)" fxFlex="90" fxFlexFill> | ||
</convl-story-editor-frame> | ||
<div fxLayout="column" fxLayoutAlign="start" fxFlex> | ||
<!-- Convl page subbar --> | ||
<div class="sub-bar" subbar fxLayout="row" fxLayoutGap="10px" fxLayoutAlign="space-between center"> | ||
<div fxLayout="row" fxLayoutGap="10px" fxLayoutAlign="start center"> | ||
<button class="zoom-btn" [disabled]="zoomLevel.value <= 25" mat-mini-fab (click)="decreaseFrameZoom()"> | ||
<mat-icon>zoom_out</mat-icon> | ||
</button> | ||
|
||
<input style="margin-right: 0px;" [formControl]="zoomLevel" min="25" max="100" (change)="zoomChanged($event)" type="number"> | ||
|
||
<button class="zoom-btn" [disabled]="zoomLevel.value >= 100" mat-mini-fab (click)="increaseFrameZoom()"> | ||
<mat-icon>zoom_in</mat-icon> | ||
</button> | ||
</div> | ||
|
||
<div fxLayout="row" fxLayoutGap="10px" fxLayoutAlign="start center"> | ||
<button [disabled]="!stateSaved" (click)="save()" mat-flat-button class="subbar-btn"> | ||
<span *ngIf="stateSaved; else saving"> Save </span> | ||
<ng-template #saving> | ||
<span fxLayout="row" fxLayoutAlign="start center" fxLayoutGap="10px"> | ||
<span> Saving story</span> | ||
<mat-spinner diameter="20"></mat-spinner> | ||
</span> | ||
</ng-template> | ||
</button> | ||
|
||
<button [disabled]="!storyHasBeenSaved" (click)="addToChannel()" mat-flat-button class="add-channel-btn"> | ||
<span> Add to channel </span> | ||
</button> | ||
</div> | ||
</div> | ||
|
||
<convl-story-editor-frame (frameLoaded)="onFrameViewLoaded($event)" fxFlex="90"> | ||
</convl-story-editor-frame> | ||
</div> | ||
|
||
</div> | ||
</convl-page> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.