Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/components/practice/community.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ function getCategoryIcon(category) {
return 'fas fa-skull-crossbones';
case 'steganography':
return 'fas fa-image';
case 'other':
return 'fas fa-question';
case 'basic':
return 'fas fa-graduation-cap';
case 'easy':
Expand Down
1 change: 1 addition & 0 deletions src/pages/create/edit.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ function CategorySelect({ category, setCategory }) {
{ name: 'Forensics', value: 'forensics' },
{ name: 'Cryptography', value: 'cryptography' },
{ name: 'Web', value: 'web' },
{ name: 'Steganography', value: 'steganography' },
{ name: 'Reverse Engineering', value: 'reverse engineering' },
{ name: 'Programming', value: 'programming' },
{ name: 'Pwn', value: 'pwn' },
Expand Down
1 change: 1 addition & 0 deletions src/pages/create/new.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ function CategorySelect({ category, setCategory }) {
const categories = [
{ name: 'Forensics', value: 'forensics' },
{ name: 'Cryptography', value: 'cryptography' },
{ name: 'Steganography', value: 'steganography' },
{ name: 'Web', value: 'web' },
{ name: 'Reverse Engineering', value: 'reverse engineering' },
{ name: 'Programming', value: 'programming' },
Expand Down
10 changes: 5 additions & 5 deletions src/pages/users/[user].jsx
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ export default function Create() {
<>
{user && (
<div style={{ maxHeight: '200px', overflowY: 'auto' }}>
<MarkdownViewer content={currentUsersBio} />
<MarkdownViewer content={currentUsersBio} style={{ maxHeight: '200px', overflowY: 'auto', important: true }} />
</div>
)}
</>
Expand Down Expand Up @@ -1117,14 +1117,14 @@ export default function Create() {
<p className="text-neutral-400">
{bioViewCheck()
? renderUsersBio()
: user && <MarkdownViewer content={user.bio || "Nothing to see here..."} />}
: user && <MarkdownViewer content={user.bio || "Nothing to see here..."} style={{ maxHeight: '200px', overflowY: 'auto', important: true }} />}
</p>
) : (
<p className="text-neutral-400">
{bioViewCheck()
? renderUsersBio()
: user && (
<MarkdownViewer content="Nothing to see here..." />
<MarkdownViewer content="Nothing to see here..." style={{ maxHeight: '200px', overflowY: 'auto', important: true }} />
)}
</p>
)}
Expand Down Expand Up @@ -1250,14 +1250,14 @@ export default function Create() {
<p className="text-neutral-400">
{bioViewCheck()
? renderUsersBio()
: user && <MarkdownViewer content={user.bio || "Nothing to see here..."} />}
: user && <MarkdownViewer content={user.bio || "Nothing to see here..."} style={{ maxHeight: '200px', overflowY: 'auto', important: true }} />}
</p>
) : (
<p className="text-neutral-400">
{bioViewCheck()
? renderUsersBio()
: user && (
<MarkdownViewer content="Nothing to see here..." />
<MarkdownViewer content="Nothing to see here..." style={{ maxHeight: '200px', overflowY: 'auto', important: true }} />
)}
</p>
)}
Expand Down
5 changes: 5 additions & 0 deletions src/styles/tailwind.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
overflow: hidden;
border: 2px solid;
}
/* styles.css */
.custom-markdown-viewer {
max-height: 200px !important;
overflow-y: auto !important;
}
.loader::before {
content: "";
position: absolute;
Expand Down