Skip to content

Commit

Permalink
fix: horizontal alignment of the indicator (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zviki-Zaks committed Jul 18, 2023
1 parent 22ec723 commit dcdf44f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 6 additions & 0 deletions e2e/stackoverflow.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ test.describe('stackoverflow', () => {
// check that all advisories are shown in the tooltip's advisories list
const advisories = overlayModuleName.locator(tooltipSourceSelector);
await Expect(advisories).toHaveCount(advisoriesNames.length);

// check that the issue counter not select with the original text
const codeElement = page.locator('code', { hasText: 'module_name' });
await codeElement.selectText();
const selectionText = await page.evaluate(() => window.getSelection().toString());
Expect(selectionText).toEqual('npm install --save module_name');
});

test('popup page', async ({ page, extensionId }) => {
Expand Down
4 changes: 1 addition & 3 deletions src/custom-elements/Indicator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,9 @@ export default defineComponent({
}
&__wrapper {
display: inline-block;
display: inline-flex;
user-select: none;
position: relative;
height: $indicator-height;
top: $padding-l1;
overflow: hidden;
border-radius: 4px;
align-items: center;
Expand Down

0 comments on commit dcdf44f

Please sign in to comment.