Compare commits
2 commits
0b511389da
...
e4b3188aff
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e4b3188aff | ||
|
|
6b578012b7 |
2 changed files with 17 additions and 25 deletions
27
src/App.vue
27
src/App.vue
|
|
@ -236,7 +236,7 @@ const clearSelectedPages = () => {
|
||||||
selectedPages.value = [];
|
selectedPages.value = [];
|
||||||
};
|
};
|
||||||
|
|
||||||
// Content elements that can trigger ElementPopup
|
// Text elements that can trigger ElementPopup (excluding containers, images, etc.)
|
||||||
const CONTENT_ELEMENTS = [
|
const CONTENT_ELEMENTS = [
|
||||||
'P',
|
'P',
|
||||||
'H1',
|
'H1',
|
||||||
|
|
@ -245,34 +245,17 @@ const CONTENT_ELEMENTS = [
|
||||||
'H4',
|
'H4',
|
||||||
'H5',
|
'H5',
|
||||||
'H6',
|
'H6',
|
||||||
'IMG',
|
|
||||||
'FIGURE',
|
|
||||||
'FIGCAPTION',
|
|
||||||
'UL',
|
|
||||||
'OL',
|
|
||||||
'LI',
|
|
||||||
'BLOCKQUOTE',
|
'BLOCKQUOTE',
|
||||||
'PRE',
|
'LI',
|
||||||
'CODE',
|
|
||||||
'TABLE',
|
|
||||||
'THEAD',
|
|
||||||
'TBODY',
|
|
||||||
'TR',
|
|
||||||
'TH',
|
|
||||||
'TD',
|
|
||||||
'A',
|
'A',
|
||||||
'SPAN',
|
|
||||||
'STRONG',
|
'STRONG',
|
||||||
'EM',
|
'EM',
|
||||||
'B',
|
'B',
|
||||||
'I',
|
'I',
|
||||||
'U',
|
'U',
|
||||||
'ARTICLE',
|
'CODE',
|
||||||
'SECTION',
|
'PRE',
|
||||||
'ASIDE',
|
'FIGCAPTION',
|
||||||
'HEADER',
|
|
||||||
'FOOTER',
|
|
||||||
'NAV',
|
|
||||||
];
|
];
|
||||||
|
|
||||||
// Check if element is a content element (or find closest content parent)
|
// Check if element is a content element (or find closest content parent)
|
||||||
|
|
|
||||||
|
|
@ -34,8 +34,14 @@
|
||||||
@click="activeTab = ''"
|
@click="activeTab = ''"
|
||||||
title="Fermer le panneau"
|
title="Fermer le panneau"
|
||||||
>
|
>
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
|
<svg
|
||||||
<path d="M4.83582 12L11.0429 18.2071L12.4571 16.7929L7.66424 12L12.4571 7.20712L11.0429 5.79291L4.83582 12ZM10.4857 12L16.6928 18.2071L18.107 16.7929L13.3141 12L18.107 7.20712L16.6928 5.79291L10.4857 12Z"></path>
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
viewBox="0 0 24 24"
|
||||||
|
fill="currentColor"
|
||||||
|
>
|
||||||
|
<path
|
||||||
|
d="M4.83582 12L11.0429 18.2071L12.4571 16.7929L7.66424 12L12.4571 7.20712L11.0429 5.79291L4.83582 12ZM10.4857 12L16.6928 18.2071L18.107 16.7929L13.3141 12L18.107 7.20712L16.6928 5.79291L10.4857 12Z"
|
||||||
|
></path>
|
||||||
</svg>
|
</svg>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
|
|
@ -75,6 +81,7 @@ const activeTab = inject('activeTab');
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
nav {
|
nav {
|
||||||
|
|
@ -84,6 +91,7 @@ nav {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 0.5rem;
|
gap: 0.5rem;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
|
pointer-events: all;
|
||||||
}
|
}
|
||||||
|
|
||||||
.close-button {
|
.close-button {
|
||||||
|
|
@ -117,7 +125,7 @@ nav {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
position: relative;
|
position: relative;
|
||||||
left: calc(var(--panel-w)*-1);
|
left: calc(var(--panel-w) * -1);
|
||||||
|
|
||||||
padding: 4rem 0;
|
padding: 4rem 0;
|
||||||
|
|
||||||
|
|
@ -125,6 +133,7 @@ nav {
|
||||||
box-shadow: -5px 0px 12px;
|
box-shadow: -5px 0px 12px;
|
||||||
|
|
||||||
transition: left 0.3s var(--curve);
|
transition: left 0.3s var(--curve);
|
||||||
|
pointer-events: all;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab-content.open {
|
.tab-content.open {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue