feat(table.border): at least one px

This commit is contained in:
mfo 2024-11-26 11:34:11 +01:00
parent d79a80c711
commit cfabdff96c
No known key found for this signature in database
GPG key ID: 7CE3E1F5B794A8EC

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;