Feature Request: Remove the minimum Window size requirements.

Fixes #105
This commit is contained in:
josselinonduty 2025-04-12 00:55:20 +09:00
parent 97a94348de
commit 51e9a2608f
No known key found for this signature in database
2 changed files with 56 additions and 0 deletions

View File

@ -36,6 +36,7 @@ prepare: clean install_build_deps
@echo "Prettier the sources to patch successfully"
@node_modules/prettier/bin-prettier.js --write "$(APP_DIR)/build/*.js"
@node_modules/prettier/bin-prettier.js --write "$(APP_DIR)/build/*.html"
@echo "Apply patches from ./patches:"
@echo "01 - Hide to tray when closing (https://github.com/SibrenVasse/deezer/issues/4)"

View File

@ -0,0 +1,55 @@
From f95ca5f06f78592a6167379d9bf5a13191910838 Mon Sep 17 00:00:00 2001
From: josselinonduty <contact@josselinonduty.fr>
Date: Sat, 12 Apr 2025 00:53:24 +0900
Subject: [PATCH] feat: improve responsiveness for small devices
---
build/index.html | 21 ++++++++++++++++++++-
build/main.js | 4 ++--
2 files changed, 22 insertions(+), 3 deletions(-)
diff --git a/build/index.html b/build/index.html
index 357ca43..0e14653 100644
--- a/build/index.html
+++ b/build/index.html
@@ -1 +1,20 @@
-<!doctype html><html><head><meta charset="utf-8"><title>Deezer</title><script defer="defer" src="./renderer.js"></script></head><body class="electron"><div id="dzr-app"></div></body></html>
\ No newline at end of file
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="utf-8" />
+ <title>Deezer</title>
+ <script defer="defer" src="./renderer.js"></script>
+ <style>
+ body {
+ overflow-x: auto !important;
+ }
+
+ #page_topbar {
+ min-width: 0px !important;
+ }
+ </style>
+ </head>
+ <body class="electron">
+ <div id="dzr-app"></div>
+ </body>
+</html>
diff --git a/build/main.js b/build/main.js
index e3f2b78..d9e3185 100644
--- a/build/main.js
+++ b/build/main.js
@@ -3206,8 +3206,8 @@
},
windowOptions = {
title: "Deezer Desktop",
- minWidth: 990,
- minHeight: 600,
+ minWidth: 450,
+ minHeight: 450,
icon: external_electron_namespaceObject.nativeImage.createFromPath(
getAppIcon(external_electron_namespaceObject.app)
),
--
2.43.0