-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Fixes borders, dark mode highlight, and actions padding style is…
…sues (#57) * fix: Fixes borders, dark mode highlight, and actions padding style issues * removes debugging code * re-add background color to line numbers
- Loading branch information
Showing
3 changed files
with
30 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,21 @@ | ||
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
import { SpaceBetween } from "@cloudscape-design/components"; | ||
|
||
import { CodeView } from "../../lib/components"; | ||
import { ScreenshotArea } from "../screenshot-area"; | ||
|
||
export default function CodeViewPage() { | ||
return ( | ||
<ScreenshotArea> | ||
<h1>Code View</h1> | ||
<CodeView content={"Hello World"} /> | ||
<CodeView | ||
content={`public class HelloWorld {\n public static void main(String[] args) {\n System.out.println("Hello, World!");\n }\n}`} | ||
/> | ||
<SpaceBetween size="s"> | ||
<CodeView content={"Hello World"} /> | ||
<CodeView | ||
content={`public class HelloWorld {\n public static void main(String[] args) {\n System.out.println("Hello, World!");\n }\n}`} | ||
/> | ||
</SpaceBetween> | ||
</ScreenshotArea> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters