Skip to content

Commit

Permalink
Fix some styles in the playground with overflow (#3542)
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheeguerin authored Jun 6, 2024
1 parent 6ce8837 commit 0f344ac
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
# Change versionKind to one of: internal, fix, dependencies, feature, deprecation, breaking
changeKind: fix
packages:
- "@typespec/playground"
---

Fix issue where hover tooltip would be cropped or not visible
2 changes: 1 addition & 1 deletion packages/playground/src/react/editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const Editor: FunctionComponent<EditorProps> = ({ model, options, actions
return (
<div
className="monaco-editor-container"
style={{ width: "100%", height: "100%", overflow: "hidden" }}
style={{ width: "100%", height: "100%" }}
ref={editorContainerRef}
data-tabster='{"uncontrolled": {}}' // https://github.com/microsoft/tabster/issues/316
></div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.tabs {
border-bottom: 1px solid var(--colorNeutralStroke1);
box-shadow: var(--shadow2);
overflow-y: auto;
}

.tab-divider {
Expand Down
5 changes: 5 additions & 0 deletions packages/playground/src/react/playground.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,8 @@
height: 100%;
overflow: hidden;
}

.edit-pane {
display: flex;
flex-direction: column;
}
2 changes: 1 addition & 1 deletion packages/playground/src/react/playground.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ export const Playground: FunctionComponent<PlaygroundProps> = (props) => {
<SplitPane sizes={verticalPaneSizes} onChange={onVerticalPaneSizeChange} split="horizontal">
<Pane>
<SplitPane initialSizes={["50%", "50%"]}>
<Pane>
<Pane className={style["edit-pane"]}>
<EditorCommandBar
host={host}
selectedEmitter={selectedEmitter}
Expand Down

0 comments on commit 0f344ac

Please sign in to comment.