staticdash 2025.15__tar.gz → 2025.16__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: staticdash
3
- Version: 2025.15
3
+ Version: 2025.16
4
4
  Summary: A lightweight static HTML dashboard generator with Plotly and pandas support.
5
5
  Author-email: Brian Day <brian.day1@gmail.com>
6
6
  License: CC0-1.0
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "staticdash"
7
- version = "2025.15"
7
+ version = "2025.16"
8
8
  description = "A lightweight static HTML dashboard generator with Plotly and pandas support."
9
9
  authors = [
10
10
  { name = "Brian Day", email = "brian.day1@gmail.com" }
@@ -201,6 +201,7 @@ class Dashboard:
201
201
 
202
202
  def write_page(page):
203
203
  doc = document(title=page.title)
204
+ effective_width = page.page_width or self.page_width or 900
204
205
  with doc.head:
205
206
  doc.head.add(link(rel="stylesheet", href="../assets/css/style.css"))
206
207
  doc.head.add(script(type="text/javascript", src="../assets/js/script.js"))
@@ -209,6 +210,8 @@ class Dashboard:
209
210
  doc.head.add(script(src="https://cdn.jsdelivr.net/npm/prismjs@1.29.0/prism.min.js"))
210
211
  doc.head.add(script(src="https://cdn.jsdelivr.net/npm/prismjs@1.29.0/components/prism-python.min.js"))
211
212
  doc.head.add(script(src="https://cdn.jsdelivr.net/npm/prismjs@1.29.0/components/prism-javascript.min.js"))
213
+ # Inject dynamic page width
214
+ doc.head.add(raw_util(f"<style>.content-inner {{ max-width: {effective_width}px !important; }}</style>"))
212
215
  with doc:
213
216
  with div(id="sidebar"):
214
217
  a(self.title, href="../index.html", cls="sidebar-title")
@@ -227,7 +230,9 @@ class Dashboard:
227
230
  for page in self.pages:
228
231
  write_page(page)
229
232
 
233
+ # Index page
230
234
  index_doc = document(title=self.title)
235
+ effective_width = self.pages[0].page_width or self.page_width or 900
231
236
  with index_doc.head:
232
237
  index_doc.head.add(link(rel="stylesheet", href="assets/css/style.css"))
233
238
  index_doc.head.add(script(type="text/javascript", src="assets/js/script.js"))
@@ -241,7 +246,8 @@ class Dashboard:
241
246
  index_doc.head.add(script(src="https://cdn.jsdelivr.net/npm/prismjs@1.29.0/components/prism-bash.min.js"))
242
247
  index_doc.head.add(script(src="https://cdn.jsdelivr.net/npm/prismjs@1.29.0/components/prism-json.min.js"))
243
248
  index_doc.head.add(script(src="https://cdn.jsdelivr.net/npm/prismjs@1.29.0/components/prism-c.min.js"))
244
-
249
+ # Inject dynamic page width
250
+ index_doc.head.add(raw_util(f"<style>.content-inner {{ max-width: {effective_width}px !important; }}</style>"))
245
251
  with index_doc:
246
252
  with div(id="sidebar"):
247
253
  a(self.title, href="index.html", cls="sidebar-title")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: staticdash
3
- Version: 2025.15
3
+ Version: 2025.16
4
4
  Summary: A lightweight static HTML dashboard generator with Plotly and pandas support.
5
5
  Author-email: Brian Day <brian.day1@gmail.com>
6
6
  License: CC0-1.0
File without changes
File without changes