diff --git a/package.json b/package.json index d56130a..4240245 100644 --- a/package.json +++ b/package.json @@ -57,6 +57,7 @@ "register-service-worker": "^1.7.1", "svg-sprite-loader": "^5.0.0", "tunnel": "^0.0.6", + "vscode-codicons": "^0.0.14", "vue": "^2.6.11", "vue-analytics": "^5.22.1", "vue-electron": "^1.0.6", diff --git a/public/index.html b/public/index.html index 193d42c..dd20039 100644 --- a/public/index.html +++ b/public/index.html @@ -4,7 +4,7 @@ - + <%= htmlWebpackPlugin.options.title %> diff --git a/src/App.vue b/src/App.vue index ff33a46..b5aa31c 100644 --- a/src/App.vue +++ b/src/App.vue @@ -91,6 +91,15 @@ export default { --color-navbar-bg: rgba(255, 255, 255, 0.86); --color-primary-bg-for-transparent: rgba(189, 207, 255, 0.28); --color-secondary-bg-for-transparent: rgba(209, 209, 214, 0.28); + + --main-content-padding-x: 10vw; + --main-content-padding: 0 var(--main-content-padding-x); +} + +@media (max-width: 1336px) { + :root { + --main-content-padding-x: 5vw; + } } [data-theme="dark"] { @@ -117,26 +126,18 @@ input { } body { background-color: var(--color-body-bg); + margin: 0; } html { overflow-y: overlay; - min-width: 768px; + min-width: 340px; } main { + max-width: 100vw; margin-top: 84px; margin-bottom: 96px; - padding: { - right: 10vw; - left: 10vw; - } -} - -@media (max-width: 1336px) { - main { - padding: 0 5vw; - } } select, diff --git a/src/assets/icons/arrow-down.svg b/src/assets/icons/arrow-down.svg new file mode 100644 index 0000000..39daa0f --- /dev/null +++ b/src/assets/icons/arrow-down.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/icons/arrow-up.svg b/src/assets/icons/arrow-up.svg new file mode 100644 index 0000000..4921a64 --- /dev/null +++ b/src/assets/icons/arrow-up.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/icons/plus.svg b/src/assets/icons/plus.svg new file mode 100644 index 0000000..e254d52 --- /dev/null +++ b/src/assets/icons/plus.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/background.js b/src/background.js index 3f46503..ec11712 100644 --- a/src/background.js +++ b/src/background.js @@ -88,15 +88,20 @@ class Background { createWindow() { console.log("creating app window"); + // Only for Windows, a special title bar for it + const withoutFrame = process.platform == "win32"; + this.window = new BrowserWindow({ width: this.store.get("window.width") | 1440, height: this.store.get("window.height") | 840, - minWidth: 1080, - minHeight: 720, + minWidth: 360, + minHeight: 240, titleBarStyle: "hiddenInset", + frame: !withoutFrame, webPreferences: { webSecurity: false, nodeIntegration: true, + enableRemoteModule: true, }, }); diff --git a/src/components/CoverRow.vue b/src/components/CoverRow.vue index 7270c3d..f9ea4de 100644 --- a/src/components/CoverRow.vue +++ b/src/components/CoverRow.vue @@ -1,5 +1,9 @@