mirror of
https://github.com/aunetx/deezer-linux.git
synced 2025-07-22 13:14:33 +02:00
Merge pull request #107 from aunetx/josselinonduty/issue105
Feature Request: Remove the minimum Window size requirements.
This commit is contained in:
commit
5d3ae96a75
2
Makefile
2
Makefile
@ -36,6 +36,7 @@ prepare: clean install_build_deps
|
|||||||
|
|
||||||
@echo "Prettier the sources to patch successfully"
|
@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/*.js"
|
||||||
|
@node_modules/prettier/bin-prettier.js --write "$(APP_DIR)/build/*.html"
|
||||||
|
|
||||||
@echo "Apply patches from ./patches:"
|
@echo "Apply patches from ./patches:"
|
||||||
@echo "01 - Hide to tray when closing (https://github.com/SibrenVasse/deezer/issues/4)"
|
@echo "01 - Hide to tray when closing (https://github.com/SibrenVasse/deezer/issues/4)"
|
||||||
@ -48,6 +49,7 @@ prepare: clean install_build_deps
|
|||||||
@echo "08 - Add option to disable Discord Rich Presence (https://github.com/aunetx/deezer-linux/pull/95)"
|
@echo "08 - Add option to disable Discord Rich Presence (https://github.com/aunetx/deezer-linux/pull/95)"
|
||||||
@echo "09 - Add environment variable to change log level (https://github.com/aunetx/deezer-linux/pull/95)"
|
@echo "09 - Add environment variable to change log level (https://github.com/aunetx/deezer-linux/pull/95)"
|
||||||
@echo "10 - Add track duration and url, various fixes (https://github.com/aunetx/deezer-linux/pull/95)"
|
@echo "10 - Add track duration and url, various fixes (https://github.com/aunetx/deezer-linux/pull/95)"
|
||||||
|
@echo "11 - Improve responsiveness on small devices (https://github.com/aunetx/deezer-linux/pull/107)"
|
||||||
$(foreach p, $(wildcard ./patches/*), patch -p 1 -d $(APP_DIR) < $(p);)
|
$(foreach p, $(wildcard ./patches/*), patch -p 1 -d $(APP_DIR) < $(p);)
|
||||||
|
|
||||||
@echo "Append `package-append.json` to the `package.json` of the app"
|
@echo "Append `package-append.json` to the `package.json` of the app"
|
||||||
|
48
patches/11-improve-responsiveness.patch
Normal file
48
patches/11-improve-responsiveness.patch
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
From 6cbd417ecc4fbd278e24bb202671b13c93064d95 Mon Sep 17 00:00:00 2001
|
||||||
|
From: josselinonduty <contact@josselinonduty.fr>
|
||||||
|
Date: Sat, 12 Apr 2025 01:08:14 +0900
|
||||||
|
Subject: [PATCH] feat: improve responsiveness on small devices
|
||||||
|
|
||||||
|
---
|
||||||
|
build/index.html | 9 +++++++++
|
||||||
|
build/main.js | 4 ++--
|
||||||
|
2 files changed, 11 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/build/index.html b/build/index.html
|
||||||
|
index aa761a2..0e14653 100644
|
||||||
|
--- a/build/index.html
|
||||||
|
+++ b/build/index.html
|
||||||
|
@@ -4,6 +4,15 @@
|
||||||
|
<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>
|
||||||
|
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
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user