Add patch to include css-overrides

This commit is contained in:
2025-05-22 11:34:37 +01:00
parent 568bb0debb
commit 524802c0be
2 changed files with 26 additions and 1 deletions

View File

@@ -26,6 +26,7 @@ Source0: %{name}-%{version}.tar.xz
Source10: package-lock.json
Source11: node_modules.spec.inc
%include %_sourcedir/node_modules.spec.inc
Patch10: load-css-overrides.patch
BuildArch: noarch
%if ! 0%{?suse_version}
@@ -80,7 +81,7 @@ Provides: bundled(npm(tslib)) = 2.8.1
A Cockpit module for managing system repositories
%prep
%autosetup
%autosetup -p1
rm -f package-lock.json
local-npm-registry %{_sourcedir} install --include=dev --ignore-scripts

24
load-css-overrides.patch Normal file
View File

@@ -0,0 +1,24 @@
From e4bbf3a26871684bdacfd20504398287d296e7e8 Mon Sep 17 00:00:00 2001
From: Alice Brooks <alice.brooks@suse.com>
Date: Thu, 22 May 2025 11:31:24 +0100
Subject: [PATCH] Load css overrides
---
src/index.html | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/index.html b/src/index.html
index 4f86366..c1fe970 100644
--- a/src/index.html
+++ b/src/index.html
@@ -23,6 +23,7 @@ along with this package; If not, see <http://www.gnu.org/licenses/>.
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="index.css">
+ <link href="../../static/css-overrides.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="index.js"></script>
<script type="text/javascript" src="po.js"></script>
--
2.49.0