Skip to content

Commit

Permalink
Fix: Scrollablity issue for discord users
Browse files Browse the repository at this point in the history
  • Loading branch information
codeforstartups committed Jan 22, 2025
1 parent 7c77f12 commit f573796
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions users/discord/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ export const App = () => {
return createElement('main', {}, [
TabsSection({ tabs, activeTab, handleTabNavigation }),

// Scrollable users section
createElement('div', { class: 'users_section' }, [
UsersSection({
users,
Expand All @@ -66,7 +65,6 @@ export const App = () => {
}),
]),

// Fixed user details section
createElement('div', { class: 'user_details_section' }, [
UserDetailsSection({ user: users[showUser] ?? {} }),
]),
Expand Down
4 changes: 2 additions & 2 deletions users/discord/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ main {
grid-template-areas:
'tab tab '
'aside details';
height: 100%; /* Ensure full page height */
height: 100%;
}

.tabs_section {
Expand Down Expand Up @@ -67,7 +67,7 @@ main {
padding: 1rem;
background-color: var(--light-gray);
position: sticky;
height: 100%; /* Fill available space */
height: 100%;
}

.user_details_field {
Expand Down

0 comments on commit f573796

Please sign in to comment.