Skip to content

Commit

Permalink
Add tab scrolling
Browse files Browse the repository at this point in the history
  • Loading branch information
JohanGrims authored Dec 9, 2024
1 parent 214ffce commit d852e79
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/admin/Students.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,12 @@ export default function Students() {
value={
classId || (sortedClasses.length < 1 ? "new-class" : sortedClasses[0].id)
}
style={{ width: "100%", overflowX: "auto" }}
>
{sortedClasses.map((c) => (
<mdui-tab
value={c.id}
style={{ whiteSpace: "nowrap" }}
onClick={() => {
navigate(`/admin/students/${c.id}`);
}}
Expand All @@ -253,6 +255,7 @@ export default function Students() {
))}
<mdui-tab
value="new-class"
style={{ whiteSpace: "nowrap" }}
icon="add"
inline
onClick={() => {
Expand Down

0 comments on commit d852e79

Please sign in to comment.