mirror of
https://github.com/penpot/penpot-plugins.git
synced 2025-01-06 14:50:21 -05:00
chore: enhancement table plugin
This commit is contained in:
parent
e047977c69
commit
ef2cb7cab6
2 changed files with 21 additions and 18 deletions
|
@ -87,6 +87,7 @@ hr {
|
|||
block-size: 22px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin-block-end: var(--spacing-12);
|
||||
|
||||
& .text {
|
||||
margin-block-start: 0;
|
||||
|
|
|
@ -29,24 +29,7 @@
|
|||
>{{ selectedRow }} rows x {{ selectedColumn }} cols</span
|
||||
>
|
||||
</div>
|
||||
<div class="table-grid">
|
||||
<span
|
||||
class="cell"
|
||||
*ngFor="let cell of cells; index as i"
|
||||
(mouseenter)="setColRow(i)"
|
||||
(mouseleave)="clearColRow()"
|
||||
(click)="createTable(i)"
|
||||
>
|
||||
<span
|
||||
class="square"
|
||||
[class.active]="
|
||||
selectedCell &&
|
||||
selectedCell.column >= getCellColRow(i).column &&
|
||||
selectedCell.row >= getCellColRow(i).row
|
||||
"
|
||||
></span>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="checkbox-container">
|
||||
<input
|
||||
[(ngModel)]="tableOptions.borders"
|
||||
|
@ -88,4 +71,23 @@
|
|||
/>
|
||||
<label for="filledHeaderColumn" class="body-s">Filled header column</label>
|
||||
</div>
|
||||
|
||||
<div class="table-grid">
|
||||
<span
|
||||
class="cell"
|
||||
*ngFor="let cell of cells; index as i"
|
||||
(mouseenter)="setColRow(i)"
|
||||
(mouseleave)="clearColRow()"
|
||||
(click)="createTable(i)"
|
||||
>
|
||||
<span
|
||||
class="square"
|
||||
[class.active]="
|
||||
selectedCell &&
|
||||
selectedCell.column >= getCellColRow(i).column &&
|
||||
selectedCell.row >= getCellColRow(i).row
|
||||
"
|
||||
></span>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue