This repository was archived by the owner on Feb 6, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +13
-22
lines changed
components/editor/app-editor-toolbar
popovers/editor/app-slide-type Expand file tree Collapse file tree 6 files changed +13
-22
lines changed Original file line number Diff line number Diff line change @@ -403,6 +403,16 @@ export class AppEditorToolbar {
403403 const element : HTMLElement = this . applyToAllDeck ? this . selectedElement . parentElement : this . selectedElement ;
404404
405405 element . style . setProperty ( '--background' , $event . target . value ) ;
406+ } else if ( this . selectedElement . parentElement && this . selectedElement . parentElement . nodeName && this . selectedElement . parentElement . nodeName . toLowerCase ( ) === 'deckgo-slide-split' ) {
407+ const element : HTMLElement = this . selectedElement . parentElement ;
408+
409+ if ( this . selectedElement . getAttribute ( 'slot' ) === 'start' ) {
410+ element . style . setProperty ( '--slide-split-background-start' , $event . target . value ) ;
411+ } else if ( this . selectedElement . getAttribute ( 'slot' ) === 'end' ) {
412+ element . style . setProperty ( '--slide-split-background-end' , $event . target . value ) ;
413+ } else {
414+ this . selectedElement . style . background = $event . target . value ;
415+ }
406416 } else {
407417 this . selectedElement . style . background = $event . target . value ;
408418 }
Original file line number Diff line number Diff line change @@ -298,8 +298,6 @@ export class AppEditor {
298298
299299 const firstSlide : FirstSlideContent = await this . getFirstSlideContent ( ) ;
300300
301- console . log ( firstSlide ) ;
302-
303301 const modal : HTMLIonModalElement = await this . modalController . create ( {
304302 component : 'app-publish' ,
305303 componentProps : {
Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ app-slide-type {
2727 }
2828
2929 deckgo-slide-split {
30- --slide-split-title-display : visible ;
3130 --slide-split-padding-top : 4px ;
3231 --slide-split-padding-start : 4px ;
3332 --slide-split-padding-end : 4px ;
@@ -53,15 +52,9 @@ app-slide-type {
5352 }
5453
5554 deckgo-slide-split {
56- h1 {
57- margin-left : 4px ;
58- margin-right : 4px ;
59- }
60-
6155 p {
62- max-width : 26px ;
6356 margin : 0 ;
64- max- height : 22 px ;
57+ height : 54 px ;
6558 overflow : hidden ;
6659 font-size : 0.2rem ;
6760 }
Original file line number Diff line number Diff line change @@ -38,7 +38,6 @@ export class AppSlideType {
3838 </ div >
3939 < div class = "item" custom-tappable onClick = { ( ) => this . addSlide ( SlideTemplate . SPLIT ) } >
4040 < deckgo-slide-split >
41- < h1 slot = "title" > Title</ h1 >
4241 < p slot = "start" > Content</ p >
4342 < p slot = "end" > Content</ p >
4443 </ deckgo-slide-split >
Original file line number Diff line number Diff line change @@ -86,10 +86,6 @@ export class EditorUtils {
8686 return ;
8787 }
8888
89- const title = < h1 slot = "title" class = "deckgo-untouched" contenteditable >
90- { this . DEFAULT_TITLE }
91- </ h1 > ;
92-
9389 const start = < p slot = "start" class = "deckgo-untouched" contenteditable >
9490 { this . DEFAULT_CONTENT }
9591 </ p > ;
@@ -98,12 +94,7 @@ export class EditorUtils {
9894 { this . DEFAULT_CONTENT }
9995 </ p > ;
10096
101- const style = {
102- '--slide-split-title-display' : 'visible'
103- } ;
104-
105- const slide : any = < deckgo-slide-split style = { style } >
106- { title }
97+ const slide : any = < deckgo-slide-split >
10798 { start }
10899 { end }
109100 </ deckgo-slide-split > ;
Original file line number Diff line number Diff line change 88import '@stencil/core' ;
99
1010import '@ionic/core' ;
11- import 'ionicons' ;
1211import 'deckdeckgo' ;
1312import 'deckdeckgo-inline-editor' ;
13+ import 'ionicons' ;
1414import {
1515 EventEmitter ,
1616} from '@stencil/core' ;
You can’t perform that action at this time.
0 commit comments