-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from sereneinserenade/24-ƒeat-use-the-nextui-d…
…ropdown-component-to-choose-the-language-in-codeblock feat(CodeBlock): Added NextUi Dropdown for Selecting Language
- Loading branch information
Showing
2 changed files
with
96 additions
and
24 deletions.
There are no files selected for viewing
107 changes: 93 additions & 14 deletions
107
src/components/editor/extensions/CodeBlockComponents/CodeBlock.tsx
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
13 changes: 3 additions & 10 deletions
13
src/components/editor/extensions/CodeBlockComponents/styles/CodeBlock.scss
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,17 +1,10 @@ | ||
.code-block { | ||
position: relative; | ||
|
||
select { | ||
appearance: none; | ||
background-color: var(--nextui-colors-background); | ||
border-radius: var(--nextui-radii-sm); | ||
.dropdown { | ||
padding-left: 10px; | ||
justify-content: center; | ||
position: absolute; | ||
right: 1rem; | ||
top: 8px; | ||
z-index: 100; | ||
transform: translateY(-100%); | ||
width: fit-content; | ||
right: 4px; | ||
top: 4px; | ||
} | ||
} |