Skip to content

Commit

Permalink
Fixed table horizontal scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
Spokeek committed Apr 28, 2024
1 parent 18e214c commit 08bb665
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vrc-get-gui/app/repositories/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ function PageBody() {
<HSection>
<Table
header={["", tc("vpm repositories:community repositories"), tc("vpm repositories:url"), ""]}
layout={["auto", "1fr", "1fr", "auto"]}
layout={["50px", "1fr", "1fr", "50px"]}
rows={(result.data?.user_repositories ?? []).map((repo, repoIndex) => {
const id = `repository-${repo.id}`;

Expand Down
2 changes: 1 addition & 1 deletion vrc-get-gui/components/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const Table = (
if (!layout){
layout = Array(header.length).fill(0).map(_ => "auto")
}
return (<div className={`grid rounded-xl border border-blue-gray-100 ${className}`} style={{gridTemplateColumns: layout.join(" ") }}>
return (<div className={`grid overflow-x-auto rounded-xl border border-blue-gray-100 ${className}`} style={{gridTemplateColumns: layout.join(" ") }}>
{/* Header */}
{header.map((headerItem, headerIndex) => (<div
key={headerIndex}
Expand Down

0 comments on commit 08bb665

Please sign in to comment.