Skip to content
Snippets Groups Projects
Verified Commit bc49f17f authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

fix: some small css issues; fix missing last line in copy all function

parent fd39394a
Branches
Tags
No related merge requests found
...@@ -720,7 +720,6 @@ function initEventHandler() { ...@@ -720,7 +720,6 @@ function initEventHandler() {
}); });
const eventHandlerDoubleClickCopyToClipboard = (event) => { const eventHandlerDoubleClickCopyToClipboard = (event) => {
const element = findTargetElementFromEvent(event, "data-monster-head"); const element = findTargetElementFromEvent(event, "data-monster-head");
if (element) { if (element) {
...@@ -784,18 +783,18 @@ function initEventHandler() { ...@@ -784,18 +783,18 @@ function initEventHandler() {
let currentIndex= null; let currentIndex= null;
const cols = self.getGridElements(`[data-monster-insert-reference]`); const cols = self.getGridElements(`[data-monster-insert-reference]`);
const rowIndexes = new Map();
cols.forEach((col) => {
const index = col.getAttribute("data-monster-insert-reference");
rowIndexes.set(index, true);
});
rowIndexes.forEach((value, key) => {
const cols = self.getGridElements(`[data-monster-insert-reference="${key}"]`);
for (let i = 0; i < cols.length; i++) { for (let i = 0; i < cols.length; i++) {
const col = cols[i]; const col = cols[i];
const index = col.getAttribute("data-monster-insert-reference");
if (currentIndex !== index) {
if (currentRow.length > 0) {
table.push(currentRow);
}
currentRow = [];
currentIndex = index;
}
if (col.querySelector("monster-button-bar") || col.querySelector("monster-button")) { if (col.querySelector("monster-button-bar") || col.querySelector("monster-button")) {
continue; continue;
} }
...@@ -803,8 +802,13 @@ function initEventHandler() { ...@@ -803,8 +802,13 @@ function initEventHandler() {
if (col.textContent) { if (col.textContent) {
currentRow.push(quoteOpenChar+col.textContent.trim()+quoteCloseChar); currentRow.push(quoteOpenChar+col.textContent.trim()+quoteCloseChar);
} }
}
if(currentRow.length > 0) {
table.push(currentRow);
} }
currentRow = [];
});
if(table.length > 0) { if(table.length > 0) {
const text = table.map(row => row.join(delimiterChar)).join(rowBreak); const text = table.map(row => row.join(delimiterChar)).join(rowBreak);
......
...@@ -107,7 +107,5 @@ ...@@ -107,7 +107,5 @@
@container (min-width: 800px) { @container (min-width: 800px) {
[data-monster-role=pagination] { [data-monster-role=pagination] {
background-color: red;
color: red;
} }
} }
...@@ -262,7 +262,7 @@ div[data-monster-role=selection] { ...@@ -262,7 +262,7 @@ div[data-monster-role=selection] {
} }
[data-monster-role="no-options"] { [data-monster-role="no-options"] {
margin: 1.1em 0 0 1.1em; margin: 1.1em 1.1em 0 1.1em;
padding: 0.3em 0.8em; padding: 0.3em 0.8em;
border-radius: 0.2em; border-radius: 0.2em;
color: var(--monster-color-warning-4); color: var(--monster-color-warning-4);
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment