DioxusLabs / DioxusLabs/dioxus
(NixOS) desktop webgtk rendering has small text and images -- and does not look normal.
- Dominant language
- Rust
- Stars
- 39.1k
- Forks
- 1.9k
- Avg merge
- 4d 10h
- Merged PRs (30d)
- 4
Description
**Problem**
Web rendering is weird. The text is small, it's hard to read, and it definitely doesn't look like it's supposed to.
_Note: for full NixOS reproducibility, I use `nix run 'github:nixos/nixpkgs?ref=9fbce356852a61af6dde59fb24d8444ecb9a3b81#dioxus-cli` in place of `dioxus-cli`. This automatically fetches, compiles if not in binary cached, deploys to nix store, then runs `dioxus-cli`, all in one go, with the version pinned to the _exact_ commit hash `9fbce356852a61af6dde59fb24d8444ecb9a3b81` in nixpkgs. This is roughly equivalent to specifically downloading `dioxus-cli` 0.6 via `cargo`. For anyone who isn't a Nix user, feel free to just install dioxus-cli 0.6 imperatively._
**Steps To Reproduce**
Steps to reproduce the behavior:
Initialize environment:
```sh
nix run 'github:nixos/nixpkgs?ref=9fbce356852a61af6dde59fb24d8444ecb9a3b81#dioxus-cli' -- new my-dioxus-test --
```
Interactive config is as follows, mimicking the [0.6 announcement video](https://www.youtube.com/watch?v=WgAjWPKRVlQ):
```
✔ 🤷 Which sub-template should be expanded? · Bare-Bones
✔ 🤷 Do you want to use Dioxus Fullstack? · false
✔ 🤷 Do you want to use Dioxus Router? · false
✔ 🤷 Do you want to use Tailwind CSS? · false
✔ 🤷 Which platform do you want DX to serve by default? · Desktop
```
```
cd my-dioxus-test
```
Enter development shell (for Nix users):
```sh
wget "https://raw.githubusercontent.com/DioxusLabs/dioxus/e552251683c389f497acf9458f9e9c9821b849b4/flake.nix"
wget "https://gist.githubusercontent.com/crabdancing/8bdaa4d9f651ccdb6014b4ef4cc9b5c3/raw/621a8c46e28b6e196109b7baa4f841dd941fe06b/flake.lock"
nix develop
```
Note: since we did not copy the `flake.lock`, the inputs are not pinned to the versions in the `DioxusLabs/dioxus` versions. This is important, because this repo's `flake.lock` has not been updated in four months and includes a Rust stack that is too old to actually compile Dioxus 0.6. I have pinned my own in a gist, in case something changes upstream, in the hopes of making these results more reproducible.
```sh
nix run 'github:nixos/nixpkgs?ref=9fbce356852a61af6dde59fb24d8444ecb9a3b81#dioxus-cli' -- serve
```
**Expected behavior**
Expected it to look like the video.
**Screenshots**

**Environment:**
- Dioxus version: 0.6.0
- Rust version: cargo 1.83.0 (5ffbef321 2024-10-29) (pinned via flake.lock)
- OS info: NixOS 24.11
- App platform: desktop
_Bonus details_
Running KDE Plasma on top of Wayland, with kwin version 6.2.4. GUI stack is more or less stock. Other applications do not render strangely, and DPI is set to 100%.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.