Skip to content

Commit

Permalink
refactor: minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
umaranis committed Nov 28, 2023
1 parent 13030ce commit 7a5c124
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
7 changes: 6 additions & 1 deletion demos/playground/src/__tests__/utils/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export async function initialize({

// Having more horizontal space prevents redundant text wraps for tests
// which affects CMD+ArrowRight/Left navigation
page.setViewportSize({ height: 1000, width: isCollab ? 2000 : 1000 });
page.setViewportSize({ height: 1000, width: isCollab ? 2500 : 1250 });
await page.goto(url);

await exposeLexicalEditor(page);
Expand Down Expand Up @@ -716,6 +716,11 @@ export async function selectFromAlignDropdown(page, selector) {
await click(page, '.dropdown ' + selector);
}

export async function selectFromTableDropdown(page, selector) {
await click(page, '.toolbar-item[aria-label="Open table toolkit"]');
await click(page, '.dropdown ' + selector);
}

export async function insertTable(page, rows = 2, columns = 3) {
let leftFrame = page;
if (IS_COLLAB) {
Expand Down
10 changes: 10 additions & 0 deletions demos/playground/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,16 @@ i.horizontal-rule {
background-image: url(images/icons/bg-color.svg);
}

.icon.table {
background-color: #6c757d;
mask-image: url(images/icons/table.svg);
-webkit-mask-image: url(images/icons/table.svg);
mask-repeat: no-repeat;
-webkit-mask-repeat: no-repeat;
mask-size: contain;
-webkit-mask-size: contain;
}

i.image {
background-image: url(images/icons/file-image.svg);
}
Expand Down

0 comments on commit 7a5c124

Please sign in to comment.