deezer-linux/patches/10-improve-responsiveness.patch
2025-05-14 17:36:44 +09:00

49 lines
1.3 KiB
Diff

From 46f790ebaf646c5cd0e34c2aa72196e033e0646d Mon Sep 17 00:00:00 2001
From: josselinonduty <contact@josselinonduty.fr>
Date: Wed, 14 May 2025 17:15:31 +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 8016bc8..82f692e 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 ddfc552..136f0e7 100644
--- a/build/main.js
+++ b/build/main.js
@@ -3169,8 +3169,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