Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CUMULUS-2271 Allow horizontal scrolling on table columns #897

Merged
merged 6 commits into from Dec 2, 2020
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 6 additions & 3 deletions CHANGELOG.md
Expand Up @@ -37,13 +37,16 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- **CUMULUS-2251**
- Add the `Granule Actions` button

**CUMULUS-2262**
- **CUMULUS-2262**
- Revised `Delete Granule` workflow to allow removing from CMR and then deleting in one step

**CUMULUS-2242**
- **CUMULUS-2242**
- Changes underlying Docker files for building dashboard bundle and dashboard image via docker. The user interface remains the same.

**CUMULUS-2070**
- **CUMULUS-2271**
- Allow horizontal scrolling in table cells when content doesn't fit in view

- **CUMULUS-2070**
- Styling changes included a small css refactor.

## [v3.0.0]
Expand Down
23 changes: 19 additions & 4 deletions app/src/css/modules/_table.scss
Expand Up @@ -34,10 +34,25 @@
padding: 1em 2em;
vertical-align: middle;
overflow: hidden;
text-overflow: ellipsis;
/*&:first-of-type {
padding: 1em 0 1em 2em;
}*/
&:hover {
overflow: auto;
}

/*
* From https://stackoverflow.com/questions/7492062/css-overflow-scroll-always-show-vertical-scroll-bar/10100209#10100209
* The horizontal scrollbar does not always show, depending on the user's OS settings.
* This forces a bar to render.
*/
&::-webkit-scrollbar {
-webkit-appearance: none;
height: 8px;
}

&::-webkit-scrollbar-thumb {
border-radius: 4px;
background-color: rgba(0, 0, 0, .5);
box-shadow: 0 0 1px rgba(255, 255, 255, .5);
}
}
.table__main-asset {
font-weight: $base-font-semibold;
Expand Down