summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxXJSONDeruloXx <danielhimebauch@gmail.com>2025-08-25 19:48:15 -0400
committerxXJSONDeruloXx <danielhimebauch@gmail.com>2025-08-25 19:48:15 -0400
commit9c1b7e1e48677e071cc2d41ccdefb059418a2140 (patch)
tree2267160d043f7db332edb156d8a29265c186e97d
parent0964715817eefb561eec678e21c08da40e2af52b (diff)
downloaddecky-bazzite-buddy-9c1b7e1e48677e071cc2d41ccdefb059418a2140.tar.gz
decky-bazzite-buddy-9c1b7e1e48677e071cc2d41ccdefb059418a2140.zip
add justfile and docker build
-rwxr-xr-x.vscode/build.sh2
-rw-r--r--justfile24
-rwxr-xr-xsrc/index.tsx80
3 files changed, 104 insertions, 2 deletions
diff --git a/.vscode/build.sh b/.vscode/build.sh
index a2f94da..e12d90e 100755
--- a/.vscode/build.sh
+++ b/.vscode/build.sh
@@ -7,4 +7,4 @@ printf "Please input sudo password to proceed.\n"
# printf "\n"
-echo $sudopass | sudo -E $CLI_LOCATION/decky plugin build $(pwd) --engine podman
+echo $sudopass | sudo -E $CLI_LOCATION/decky plugin build $(pwd) --engine docker
diff --git a/justfile b/justfile
new file mode 100644
index 0000000..56e90cc
--- /dev/null
+++ b/justfile
@@ -0,0 +1,24 @@
+# Justfile for managing build tasks
+
+# Install dependencies
+install:
+ pnpm install
+
+# Clean build artifacts and temporary files
+clean:
+ sudo rm -rf dist/
+ sudo rm -rf out/
+ sudo rm -rf node_modules/.cache/
+ sudo rm -rf .rollup.cache/
+ echo "Cleaned build artifacts"
+
+# Build the plugin
+build:
+ .vscode/build.sh
+
+# Build in development mode with watch
+dev:
+ pnpm run watch
+
+# Clean and rebuild everything
+rebuild: clean install build
diff --git a/src/index.tsx b/src/index.tsx
index be40c3a..fe9a7ad 100755
--- a/src/index.tsx
+++ b/src/index.tsx
@@ -100,8 +100,86 @@ function Content() {
) : changelogHtml ? (
<Field>
<div
+ style={{
+ width: "100%",
+ maxWidth: "100%",
+ overflow: "hidden",
+ wordWrap: "break-word",
+ overflowWrap: "break-word",
+ hyphens: "auto",
+ fontSize: "13px",
+ lineHeight: "1.4",
+ color: "#dcdedf"
+ }}
dangerouslySetInnerHTML={{
- __html: changelogHtml,
+ __html: `<style>
+ * {
+ max-width: 100% !important;
+ word-wrap: break-word !important;
+ overflow-wrap: break-word !important;
+ box-sizing: border-box !important;
+ }
+ h1, h2, h3, h4, h5, h6 {
+ font-size: 14px !important;
+ color: #67a3ff !important;
+ margin: 8px 0 4px 0 !important;
+ font-weight: bold !important;
+ }
+ p {
+ margin: 4px 0 !important;
+ font-size: 13px !important;
+ line-height: 1.4 !important;
+ }
+ ul, ol {
+ margin: 4px 0 !important;
+ padding-left: 16px !important;
+ }
+ li {
+ margin: 2px 0 !important;
+ font-size: 13px !important;
+ }
+ code {
+ background: rgba(255, 255, 255, 0.1) !important;
+ padding: 2px 4px !important;
+ border-radius: 3px !important;
+ font-size: 12px !important;
+ word-break: break-all !important;
+ }
+ pre {
+ background: rgba(255, 255, 255, 0.1) !important;
+ padding: 8px !important;
+ border-radius: 4px !important;
+ overflow-x: auto !important;
+ font-size: 12px !important;
+ white-space: pre-wrap !important;
+ word-break: break-all !important;
+ }
+ a {
+ color: #67a3ff !important;
+ text-decoration: underline !important;
+ }
+ blockquote {
+ border-left: 3px solid #67a3ff !important;
+ padding-left: 8px !important;
+ margin: 4px 0 !important;
+ opacity: 0.8 !important;
+ }
+ table {
+ width: 100% !important;
+ max-width: 100% !important;
+ border-collapse: collapse !important;
+ font-size: 12px !important;
+ }
+ td, th {
+ padding: 4px !important;
+ border: 1px solid rgba(255, 255, 255, 0.2) !important;
+ word-break: break-word !important;
+ }
+ img {
+ max-width: 100% !important;
+ height: auto !important;
+ }
+ </style>${changelogHtml}`,
}}
/>
</Field>