Merge pull request #11089 from mfo/US/fix-table-border

ETQ instructeur, je veux avoir une bordure sur mon tableau de bord instructeur même si mon niveau de zoom est > 100%
This commit is contained in:
Colin Darie 2024-11-26 12:26:17 +00:00 committed by GitHub
commit 08c963ae25
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2,8 +2,8 @@ import { ApplicationController } from './application_controller';
export class FixTableBorderController extends ApplicationController { export class FixTableBorderController extends ApplicationController {
connect() { connect() {
const pixelSize = Math.round((1 / window.devicePixelRatio) * 100) / 100; let pixelSize = Math.round((1 / window.devicePixelRatio) * 100) / 100;
pixelSize = pixelSize < 1 ? 1 : pixelSize;
// Safari does not support devicePixelRatio // Safari does not support devicePixelRatio
if (navigator.userAgent.indexOf('Safari') > -1) { if (navigator.userAgent.indexOf('Safari') > -1) {
return; return;