Files
AFFiNE-Mirror/packages/frontend/apps/electron-renderer/src/app/global.css
T
DarkSky 2b71b3f345 feat: improve test & bundler (#14434)
#### PR Dependency Tree


* **PR #14434** 👈

This tree was auto-generated by
[Charcoal](https://github.com/danerwilliams/charcoal)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* Introduced rspack bundler as an alternative to webpack for optimized
builds.

* **Tests & Quality**
* Added comprehensive editor semantic tests covering markdown, hotkeys,
and slash-menu operations.
* Expanded CI cross-browser testing to Chromium, Firefox, and WebKit;
improved shape-rendering tests to account for zoom.

* **Bug Fixes**
  * Corrected CSS overlay styling for development servers.
  * Fixed TypeScript typings for build tooling.

* **Other**
  * Document duplication now produces consistent "(n)" suffixes.
  * French i18n completeness increased to 100%.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-02-14 16:09:09 +08:00

36 lines
786 B
CSS

button,
input,
select,
textarea
/* [role='button'] */ {
-webkit-app-region: no-drag;
}
#webpack-dev-server-client-overlay,
#rspack-dev-server-client-overlay {
-webkit-app-region: no-drag;
}
html:is([data-active='false'], [data-dragging='true']) * {
-webkit-app-region: no-drag !important;
}
html[data-active='false']:has([data-translucent='true']) {
opacity: 0;
transition: opacity 0.2s 0.1s;
}
html[data-active='true']:has([data-translucent='true']) {
opacity: 1;
transition: opacity 0.2s;
}
/**
* Disable animations and transitions when on battery.
* We use :not(.playwright-test) to ensure tests (which rely on animations) don't break.
*/
body.on-battery:not(.playwright-test) * {
animation-duration: 0ms !important;
transition-duration: 0ms !important;
}