fix up merge and add bun.lockb to gitignore

This commit is contained in:
SethBurkart123
2023-09-25 11:44:25 +10:00
22 changed files with 150 additions and 106 deletions
+32 -9
View File
@@ -2920,7 +2920,21 @@ function CreateCustomShortcutDiv(element) {
shortcutdiv.classList.add("customshortcut");
let image = stringToHTML(
`<svg viewBox="0 0 40 40" style="width:39px;height:39px"><text font-size="32" font-weight="bold" fill="var(--text-primary)" x="50%" y="50%" text-anchor="middle" dominant-baseline="central">${element.icon}</text></svg>`,
`
<svg style="width:39px;height:39px" viewBox="0 0 40 40" class="shortcuticondiv">
<text
text-anchor="middle"
x="50%"
y="50%"
dy=".35em"
fill="var(--text-primary)"
font-weight="bold"
font-size="32"
dominant-baseline="middle">
${element.icon}
</text>
</svg>
`,
).firstChild;
image.classList.add("shortcuticondiv");
var text = document.createElement("p");
@@ -3076,15 +3090,24 @@ function SendHomePage() {
// Adds the shortcuts to the shortcut container
chrome.storage.local.get(["shortcuts"], function (result) {
var shortcuts = Object.values(result)[0];
for (let i = 0; i < shortcuts.length; i++) {
if (shortcuts[i].enabled) {
let Itemname = shortcuts[i].name.replace(/ /g, "");
createNewShortcut(
ShortcutLinks[Itemname].link,
ShortcutLinks[Itemname].icon,
ShortcutLinks[Itemname].viewBox,
shortcuts[i].name,
);
const currentShortcut = shortcuts[i];
if (currentShortcut?.enabled) {
const Itemname = currentShortcut?.name;
const linkDetails = ShortcutLinks?.[Itemname];
if (linkDetails) {
createNewShortcut(
linkDetails.link,
linkDetails.icon,
linkDetails.viewBox,
Itemname
);
} else {
console.warn(`No link details found for '${Itemname}'`);
}
}
}
AddCustomShortcutsToPage();
+4
View File
@@ -51,6 +51,10 @@ table th {
background-color: transparent;
}
::-webkit-scrollbar-thumb {
border-radius: 10rem !important;
}
::-webkit-scrollbar-corner {
background: none;
}
-3
View File
@@ -337,9 +337,6 @@ ol:has(.MessageList__avatar___2wxyb svg) {
-webkit-box-shadow: 0px 5px 16px 6px rgba(0, 0, 0, 0.2) !important;
box-shadow: 0px 0px 4px 2px rgba(0, 0, 0, 0.2) !important;
}
#main .timetablepage {
padding-top: 10px;
}
#main .timetablepage .quickbar {
border: none;