|
1 | | -<div class="sample-wrapper"> |
| 1 | +<div class="sample-wrapper mrl-layout"> |
2 | 2 | <section style="height: 800px;"> |
3 | 3 | <div style="display: flex; justify-content: center; flex-wrap: wrap; margin-top: 15px; margin-bottom: 15px;"> |
4 | 4 | <div class="settingsInputWrapper"> |
|
13 | 13 | [id]="block.key" [data]="block" [selected]="block.key === selectedBlock.key" [draggable]="true" |
14 | 14 | (chipClick)="selectedBlock = block" (pointerenter)="onPointerOver(chip)" (pointerleave)="onPointerLeave(chip)"> |
15 | 15 | {{block.key}} |
16 | | - <div class="material-icons igx-icon" |
17 | | - [style.opacity]="chip.data.hovered ? '1' : '0'" [style.z-index]="chip.data.hovered ? '1' : '-1'" [style.width]="chip.data.hovered ? '24px' : '0px'" |
18 | | - style="transition: opacity 150ms cubic-bezier(0.455, 0.03, 0.515, 0.955); transition: width 100ms cubic-bezier(0.455, 0.03, 0.515, 0.955);" |
19 | | - igxSuffix igxIconButton="flat" (pointerdown)="onRemovePointerDown($event)" (mousedown)="onRemovePointerDown($event)" (click)="onRemoveClickBlock(blockIndex)"> |
20 | | - <igx-icon id="igx-icon-150" >cancel</igx-icon> |
21 | | - </div> |
| 16 | + |
| 17 | + <igx-icon |
| 18 | + [style.opacity]="chip.data.hovered ? '1' : '0'" [style.z-index]="chip.data.hovered ? '1' : '-1'" [style.width]="chip.data.hovered ? '24px' : '0px'" |
| 19 | + style="transition: opacity 150ms cubic-bezier(0.455, 0.03, 0.515, 0.955); transition: width 100ms cubic-bezier(0.455, 0.03, 0.515, 0.955);" |
| 20 | + (pointerdown)="onRemovePointerDown($event)" (mousedown)="onRemovePointerDown($event)" (click)="onRemoveClickBlock(blockIndex)" |
| 21 | + igxSuffix |
| 22 | + id="igx-icon-150"> |
| 23 | + cancel |
| 24 | + </igx-icon> |
22 | 25 | </igx-chip> |
23 | 26 | } |
24 | 27 | <igx-chip #addBlock [style.margin]="'5px'" [data]="{ clicked: false }" (chipClick)="onAddBlockClick(addBlock)"> |
|
28 | 31 | } |
29 | 32 | @if (addBlock.data.clicked) { |
30 | 33 | <igx-input-group> |
31 | | - <input style="width: 15ch; padding: unset; border: none; height: 25px;" igxInput type="text" placeholder="Layout Name" (keydown)="inputKeyDownBlock($event, addBlock)" (blur)="inputBlur($event, addBlock)"/> |
| 34 | + <input igxInput type="text" placeholder="Layout Name" (keydown)="inputKeyDownBlock($event, addBlock)" (blur)="inputBlur($event, addBlock)"/> |
32 | 35 | </igx-input-group> |
33 | 36 | } |
34 | 37 | </igx-chip> |
|
104 | 107 |
|
105 | 108 | <div style="width: 100%; margin-bottom: 15px; text-align:center; min-height: 50px;" > |
106 | 109 | <span>Drag a column into a layout cell to apply:</span> |
107 | | - <igx-chips-area style="margin: auto; justify-content: center;"> |
| 110 | + <igx-chips-area style="margin: auto; justify-content: center; gap: 10px;"> |
108 | 111 | @for (col of columnsList; track col; let colIndex = $index) { |
109 | | - <igx-chip #chip [style.margin]="'5px'" [data]="col" [draggable]="true" |
| 112 | + <igx-chip #chip [data]="col" [draggable]="true" |
110 | 113 | (pointerenter)="onPointerOver(chip)" (pointerleave)="onPointerLeave(chip)"> |
111 | 114 | {{col.key}} |
112 | | - <div class="material-icons igx-icon" |
| 115 | + <igx-icon |
113 | 116 | [style.opacity]="chip.data.hovered ? '1' : '0'" [style.z-index]="chip.data.hovered ? '1' : '-1'" [style.width]="chip.data.hovered ? '24px' : '0px'" |
114 | 117 | style="transition: opacity 150ms cubic-bezier(0.455, 0.03, 0.515, 0.955); transition: width 100ms cubic-bezier(0.455, 0.03, 0.515, 0.955);" |
115 | | - igxSuffix igxIconButton="flat" (pointerdown)="onRemovePointerDown($event)" (mousedown)="onRemovePointerDown($event)" (click)="onRemoveClickColumn(colIndex)"> |
116 | | - <igx-icon id="igx-icon-150" >cancel</igx-icon> |
117 | | - </div> |
| 118 | + igxSuffix (pointerdown)="onRemovePointerDown($event)" (mousedown)="onRemovePointerDown($event)" (click)="onRemoveClickColumn(colIndex)" |
| 119 | + id="igx-icon-150"> |
| 120 | + cancel |
| 121 | + </igx-icon> |
118 | 122 | </igx-chip> |
119 | 123 | } |
120 | | - <igx-chip #addChip [style.margin]="'5px'" [data]="{ clicked: false }" (chipClick)="onAddChipClick(addChip)"> |
| 124 | + <igx-chip #addChip [data]="{ clicked: false }" (chipClick)="onAddChipClick(addChip)"> |
121 | 125 | <igx-icon igxPrefix>add_circle_outline</igx-icon> |
122 | 126 | @if (!addChip.data.clicked) { |
123 | 127 | <span>{{"Add Column"}}</span> |
124 | 128 | } |
125 | 129 | @if (addChip.data.clicked) { |
126 | 130 | <igx-input-group> |
127 | | - <input style="width: 10ch; padding: unset; border: none; height: 25px;" igxInput type="text" placeholder="Column Key" (keydown)="inputKeyDown($event, addChip)" (blur)="inputBlur($event, addChip)"/> |
| 131 | + <input igxInput type="text" placeholder="Column Key" (keydown)="inputKeyDown($event, addChip)" (blur)="inputBlur($event, addChip)"/> |
128 | 132 | </igx-input-group> |
129 | 133 | } |
130 | 134 | </igx-chip> |
|
0 commit comments