From c84afea18180bf98e9561791489167daafc7dd6c Mon Sep 17 00:00:00 2001 From: David Lechner Date: Wed, 27 Jul 2022 16:55:46 -0500 Subject: [PATCH] style: make use of more blueprint styles https://blueprintjs.com/docs/#core/typography Also fix wrapping license text while we are touching this. --- src/alerts/UnexpectedErrorAlert.tsx | 11 +++++++++-- src/ble/alerts/NoWebBluetooth.tsx | 6 +++--- .../fileNameFormGroup/FileNameFormGroup.tsx | 14 +++++++------- .../InstallPybricksDialog.tsx | 16 +++++++++------- .../installPybricksDialog.scss | 6 ++++++ src/index.scss | 4 ++++ src/licenses/LicenseDialog.tsx | 7 ++++--- src/licenses/license.scss | 14 ++++++++++++-- 8 files changed, 54 insertions(+), 24 deletions(-) diff --git a/src/alerts/UnexpectedErrorAlert.tsx b/src/alerts/UnexpectedErrorAlert.tsx index 9239dd3f..f84e0821 100644 --- a/src/alerts/UnexpectedErrorAlert.tsx +++ b/src/alerts/UnexpectedErrorAlert.tsx @@ -2,7 +2,14 @@ // Copyright (c) 2022 The Pybricks Authors import './UnexpectedErrorAlert.scss'; -import { AnchorButton, Button, ButtonGroup, Collapse, Intent } from '@blueprintjs/core'; +import { + AnchorButton, + Button, + ButtonGroup, + Collapse, + Intent, + Pre, +} from '@blueprintjs/core'; import React, { useState } from 'react'; import { useId } from 'react-aria'; import { CreateToast } from '../i18nToaster'; @@ -33,7 +40,7 @@ const UnexpectedErrorAlert: React.VoidFunctionComponent{i18n.translate('technicalInfo')} -
{error.stack}
+
{error.stack}
diff --git a/src/ble/alerts/NoWebBluetooth.tsx b/src/ble/alerts/NoWebBluetooth.tsx index cb1c82eb..c7d88e5a 100644 --- a/src/ble/alerts/NoWebBluetooth.tsx +++ b/src/ble/alerts/NoWebBluetooth.tsx @@ -1,7 +1,7 @@ // SPDX-License-Identifier: MIT // Copyright (c) 2022 The Pybricks Authors -import { Button, Intent } from '@blueprintjs/core'; +import { Button, Code, Intent } from '@blueprintjs/core'; import React from 'react'; import { CreateToast } from '../../i18nToaster'; import { isIOS, isLinux } from '../../utils/os'; @@ -19,9 +19,9 @@ const NoWebBluetooth: React.VoidFunctionComponent = () => { <>

{i18n.translate('noWebBluetooth.linux')}

- + chrome://flags/#enable-experimental-web-platform-features - +