diff options
author | Fabio Berger <me@fabioberger.com> | 2018-10-19 17:46:55 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-10-19 17:46:55 +0800 |
commit | 26cd5ec1493adab55cbaf0801b0725ca99b8fc8e (patch) | |
tree | 18095f5931b8dfec011e65f89cc7e010c678fd03 | |
parent | da0c5dd9d3e92b48a87585d4c08e2e9bd1279090 (diff) | |
download | dexon-0x-contracts-26cd5ec1493adab55cbaf0801b0725ca99b8fc8e.tar dexon-0x-contracts-26cd5ec1493adab55cbaf0801b0725ca99b8fc8e.tar.gz dexon-0x-contracts-26cd5ec1493adab55cbaf0801b0725ca99b8fc8e.tar.bz2 dexon-0x-contracts-26cd5ec1493adab55cbaf0801b0725ca99b8fc8e.tar.lz dexon-0x-contracts-26cd5ec1493adab55cbaf0801b0725ca99b8fc8e.tar.xz dexon-0x-contracts-26cd5ec1493adab55cbaf0801b0725ca99b8fc8e.tar.zst dexon-0x-contracts-26cd5ec1493adab55cbaf0801b0725ca99b8fc8e.zip |
style: accomodate different scrollbar widths on Firefox vs. Chrome/Safari
-rw-r--r-- | packages/website/ts/pages/documentation/developers_page.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/website/ts/pages/documentation/developers_page.tsx b/packages/website/ts/pages/documentation/developers_page.tsx index 918a3a635..9e4f6d413 100644 --- a/packages/website/ts/pages/documentation/developers_page.tsx +++ b/packages/website/ts/pages/documentation/developers_page.tsx @@ -6,13 +6,14 @@ import { DocsLogo } from 'ts/components/documentation/docs_logo'; import { DocsTopBar } from 'ts/components/documentation/docs_top_bar'; import { Container } from 'ts/components/ui/container'; import { Dispatcher } from 'ts/redux/dispatcher'; -import { ScreenWidths } from 'ts/types'; +import { BrowserType, ScreenWidths } from 'ts/types'; import { Translate } from 'ts/utils/translate'; import { utils } from 'ts/utils/utils'; const THROTTLE_TIMEOUT = 100; const TOP_BAR_HEIGHT = 80; -const SCROLLER_WIDTH = 4; +const browserType = utils.getBrowserType(); +const SCROLLER_WIDTH = browserType === BrowserType.Firefox ? 15 : 4; export interface DevelopersPageProps { location: Location; |