From 543b3eee9d8efcca85d64a04d68d08acee8aeb56 Mon Sep 17 00:00:00 2001 From: Grace Park Date: Mon, 29 Aug 2022 10:12:00 -0700 Subject: [PATCH] Unbreak for code in rest tables and remove unnecessary import (#30314) --- components/rest/RestOperation.module.scss | 2 +- components/ui/MiniTocs/MiniTocs.tsx | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/components/rest/RestOperation.module.scss b/components/rest/RestOperation.module.scss index 37efa6b34a..8d582d3a47 100644 --- a/components/rest/RestOperation.module.scss +++ b/components/rest/RestOperation.module.scss @@ -13,6 +13,6 @@ table-layout: fixed !important; } -.codeBlock code { +.codeBlock code:not(td *) { word-break: break-all; } diff --git a/components/ui/MiniTocs/MiniTocs.tsx b/components/ui/MiniTocs/MiniTocs.tsx index 621e82fd84..c1301d20a0 100644 --- a/components/ui/MiniTocs/MiniTocs.tsx +++ b/components/ui/MiniTocs/MiniTocs.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { Heading, NavList } from '@primer/react' import cx from 'classnames'