Skip to content

Commit

Permalink
model name should always appear in full
Browse files Browse the repository at this point in the history
  • Loading branch information
andre15silva committed Sep 20, 2024
1 parent a231bd1 commit 434b3b6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 23 deletions.
34 changes: 12 additions & 22 deletions webpage/src/components/LeaderboardTable.css
Original file line number Diff line number Diff line change
Expand Up @@ -177,38 +177,28 @@

.model-name-cell {
position: relative;
width: 200px; /* Adjust this value as needed */
overflow: hidden;
width: auto; /* Change from fixed width to auto */
min-width: 200px; /* Set a minimum width */
max-width: none; /* Remove max-width constraint */
white-space: nowrap;
overflow: visible; /* Change from hidden to visible */
}

.model-name-content {
white-space: nowrap;
overflow-x: auto;
scrollbar-width: none; /* Firefox */
-ms-overflow-style: none; /* Internet Explorer 10+ */
}

.model-name-content::-webkit-scrollbar {
display: none; /* WebKit */
overflow: visible; /* Change from auto to visible */
}

/* Remove these styles as they're no longer needed */
.model-name-cell:hover .model-name-content {
overflow-x: scroll;
}

/* Show scrollbar on hover for WebKit browsers */
.model-name-cell:hover .model-name-content::-webkit-scrollbar {
display: block;
height: 5px;
}

.model-name-cell:hover .model-name-content::-webkit-scrollbar-thumb {
background-color: rgba(0, 0, 0, 0.2);
border-radius: 2.5px;
overflow-x: visible;
}

/* Remove scrollbar styles */
.model-name-cell:hover .model-name-content::-webkit-scrollbar,
.model-name-cell:hover .model-name-content::-webkit-scrollbar-thumb,
.model-name-cell:hover .model-name-content::-webkit-scrollbar-track {
background-color: rgba(0, 0, 0, 0.1);
display: none;
}

.header-content {
Expand Down
4 changes: 3 additions & 1 deletion webpage/src/components/LeaderboardTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,9 @@ const LeaderboardTable = () => {
<div className="model-name-content">{value}</div>
</div>
),
disableSortBy: false
disableSortBy: false,
width: 'auto', // Allow the column to adjust its width
minWidth: 100, // Set a minimum width
},
{
Header: `Defects4J (${bugCounts.defects4j || 0} bugs)`,
Expand Down

0 comments on commit 434b3b6

Please sign in to comment.