Skip to content

Devtools scale messed up in v5 due to 62.5% trick #6226

@high-risc

Description

@high-risc

Describe the bug

In the application I am working on we have used the 62.5% trick to make 1rem = 10px. The devtools are styled with rem now and everything has become extremely tiny. Unfortunately, since it is rem, it's not something we can change just for the devtools without affecting the rest of our app.

Your minimal, reproducible example

https://codesandbox.io/p/sandbox/blue-bush-xl39zm

Steps to reproduce

Apply the following css:

html {
  font-size: 62.5%;
}

body {
  font-size: 1.6rem;
}

View the devtools and everything will be very small.

Expected behavior

The devtools look normal as they did previously

How often does this bug happen?

Every time

Screenshots or Videos

No response

Platform

  • OS: Windows
  • Browser: Chrome
  • Version: 118.0.5993.89

Tanstack Query adapter

react-query

TanStack Query version

5.0.5

TypeScript version

4.9.5

Additional context

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions