Skip to content

Commit

Permalink
Fix: missing container padding (#172)
Browse files Browse the repository at this point in the history
* fix: do not override vertical container padding

* fix: increase timestamp diff limit
  • Loading branch information
JuroUhlar authored Oct 22, 2024
1 parent 210f94c commit a33272e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/client/components/Container/Container.module.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.container {
--contentWidth: 920px;
padding: 0 unquote('max(20px, calc((100vw - (100vw - 100%))/2) - var(--contentWidth) / 2)');
padding-left: unquote('max(20px, calc((100vw - (100vw - 100%))/2) - var(--contentWidth) / 2)');
padding-right: unquote('max(20px, calc((100vw - (100vw - 100%))/2) - var(--contentWidth) / 2)');
}

.container.large {
Expand Down
2 changes: 1 addition & 1 deletion src/server/checks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { getServerRegion } from './fingerprint-server-api';
import { IS_DEVELOPMENT } from '../envShared';

export const IPv4_REGEX = /^((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)\.){3}(25[0-5]|(2[0-4]|1\d|[1-9]|)\d)$/;
export const ALLOWED_REQUEST_TIMESTAMP_DIFF_MS = 4000;
export const ALLOWED_REQUEST_TIMESTAMP_DIFF_MS = 7000;

// Demo origins.
// It is recommended to use production origins instead.
Expand Down

0 comments on commit a33272e

Please sign in to comment.