Skip to content

Commit

Permalink
fix: styles
Browse files Browse the repository at this point in the history
  • Loading branch information
golok727 committed Apr 26, 2024
1 parent aa9cfc2 commit 9fd90a5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export class DragToFillElement extends ShadowlessElement {
}
.drag-to-fill.dragging {
scale: 1.1;
border-style: dashed;
}
`;
@state()
Expand All @@ -54,6 +55,18 @@ export class DragToFillElement extends ShadowlessElement {
@dragstart=${this.onDragStart}
class="drag-to-fill ${this.dragging ? 'dragging' : ''}"
></div>`;

// TODO add tooltip
// return html`<div
// ${ref(this.dragToFillRef)}
// draggable="true"
// @dragstart=${this.onDragStart}
// class="drag-to-fill ${this.dragging ? 'dragging' : ''}"
// >
// <affine-tooltip .placement=${'right'} .arrow=${false} .offset=${8}>
// Drag vertically to fill
// </affine-tooltip>
// </div>`;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,9 @@ export class TableSelectionController implements ReactiveController {
div.style.width = `${w}px`;
div.style.height = `${h}px`;
div.style.borderColor = 'var(--affine-primary-color)';
div.style.borderStyle = this.__dragToFillElement.dragging
? 'dashed'
: 'solid';
div.style.boxShadow = isEditing
? '0px 0px 0px 2px rgba(30, 150, 235, 0.30)'
: 'unset';
Expand Down

0 comments on commit 9fd90a5

Please sign in to comment.