diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2026-05-18 17:02:32 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2026-05-18 17:02:32 +0200 |
| commit | 70994ddaf48a92d062977bc667c72685a4ccb815 (patch) | |
| tree | 262dd69b72804e00356cd8c98bb2a93d5668d368 /static/widgets/image | |
| parent | 2115198c6a292dce97cfb411e939b10c39ca24c1 (diff) | |
try to use bun for bundling
Diffstat (limited to 'static/widgets/image')
| -rw-r--r-- | static/widgets/image/index.css | 1 | ||||
| -rw-r--r-- | static/widgets/image/index.js | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/static/widgets/image/index.css b/static/widgets/image/index.css index bfca517..a4105e9 100644 --- a/static/widgets/image/index.css +++ b/static/widgets/image/index.css @@ -6,6 +6,7 @@ overflow: hidden; box-shadow: #223223aa 1px 1px 4px; background: var(--card-background); + margin: auto; } #container img { diff --git a/static/widgets/image/index.js b/static/widgets/image/index.js index 3e403bd..b063864 100644 --- a/static/widgets/image/index.js +++ b/static/widgets/image/index.js @@ -3,7 +3,9 @@ import * as sfw from 'sfw'; import Month from '../../month.js'; const { Div, Img, A: Link } = sfw.element.native; -const css = await sfw.css(import.meta.url, './index.css') +import stylesheet from './index.css'; + +const css = await sfw.css.sheet(stylesheet); export default class Image extends sfw.element.Container { #container |