Fixed user scrolling in all note list

This commit is contained in:
2022-09-28 21:02:05 +03:00
parent 0f3b3d527d
commit 26bcc0cbfb
6 changed files with 8 additions and 15 deletions

View File

@@ -28,7 +28,7 @@
}, },
"manifest_version": 3, "manifest_version": 3,
"name": "Twitch Notes", "name": "Twitch Notes",
"version": "0.1.0", "version": "0.2.1",
"web_accessible_resources": [ "web_accessible_resources": [
{ {
"resources": [ "resources": [

View File

@@ -13,14 +13,4 @@
script.id = "twitchNotesScript"; script.id = "twitchNotesScript";
head.appendChild(script); head.appendChild(script);
} }
// if (!document.querySelector("style#twitchNotesStyle")) {
// const style = document.createElement("link");
// style.setAttribute("href", chrome.runtime.getURL("twitch-notes.css"));
// style.setAttribute("type", "text/css");
// style.setAttribute("rel", "stylesheet");
// style.setAttribute("crossorigin", "anonymous");
// style.id = "twitchNotesStyle";
// head.appendChild(style);
// }
})(); })();

File diff suppressed because one or more lines are too long

View File

@@ -1,6 +1,6 @@
{ {
"name": "twitchnotes", "name": "twitchnotes",
"version": "0.1.0", "version": "0.2.1",
"description": "Add notes to twitch users (only visible to you)", "description": "Add notes to twitch users (only visible to you)",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {

View File

@@ -88,7 +88,7 @@
min-width: 500px; min-width: 500px;
max-width: 95vw; max-width: 95vw;
min-height: 240px; min-height: 240px;
max-height: 50vh; max-height: 80vh;
background: var(--color-background-base); background: var(--color-background-base);
border: var(--border-width-default) solid var(--color-border-base) !important; border: var(--border-width-default) solid var(--color-border-base) !important;
@@ -117,6 +117,7 @@
&-user-list { &-user-list {
border-right: 1px solid #FFFFFF19; border-right: 1px solid #FFFFFF19;
height: 100%; height: 100%;
max-height: calc(80vh - 2 * var(--button-size-default) + 1rem);
min-width: 240px; min-width: 240px;
overflow-y: auto; overflow-y: auto;
overflow-x: hidden; overflow-x: hidden;

View File

@@ -4,6 +4,7 @@ const path = require('path');
module.exports = { module.exports = {
mode: 'production', mode: 'production',
devtool: 'source-map',
entry: { entry: {
twitchNotes: path.resolve(__dirname, 'src/index.ts'), twitchNotes: path.resolve(__dirname, 'src/index.ts'),
}, },
@@ -41,5 +42,5 @@ module.exports = {
}, },
resolve: { resolve: {
extensions: ['.ts', '.js'], extensions: ['.ts', '.js'],
}, }
} }