Skip to content

Commit

Permalink
Fix text alighnment issue #11 for text block
Browse files Browse the repository at this point in the history
  • Loading branch information
iandrosov committed Dec 20, 2023
1 parent 0530983 commit d6f387a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
<template>
<lightning-card title={titleAvailableBlocks} icon-name="utility:description">
<!--
<lightning-button label="Save" slot="actions"></lightning-button>
-->
<template if:true={contentblocks}>

<template for:each={contentblocks} for:item="block">

<div key={block.recordid} class="slds-box slds-box_xx-small slds-m-left_xx-small slds-m-right_xxx-small slds-m-bottom_xx-small">
<lightning-card title={block.title}>
<!--
<lightning-input type="checkbox-button" label={block.title} name={block.recordid} slot="actions"></lightning-input>
-->
<lightning-button-stateful
label-when-off="Select"
label-when-on="Selected"
Expand All @@ -26,7 +20,8 @@
>
</lightning-button-stateful>

<lightning-formatted-rich-text
<lightning-formatted-rich-text
class="slds-text-align_left"
value={block.displaytext}
></lightning-formatted-rich-text>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default class GgwContentBlockModal extends LightningElement {
// Select a block method
handleSelectClick(evt){
//console.log('### Button event: '+evt.target.name);
//--- MUST do tehse JSON tricks to clone arraye to update data
//--- MUST do these JSON tricks to clone array to update data
// if not get error Cannot assign to read only property
let tmpBlocks = JSON.parse(JSON.stringify(this.contentblocks));
// When selecting block with statefull button ensure all otehrs are DESELECTED Only one allowed selected
Expand Down

0 comments on commit d6f387a

Please sign in to comment.