-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sheet table has good horizontal and vertical scrolling.
- Loading branch information
erikh2000
authored and
erikh2000
committed
Dec 29, 2024
1 parent
3844250
commit a98dbe7
Showing
10 changed files
with
160 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
.footer { | ||
width:auto; | ||
background-color: lightgrey; | ||
border-style: solid; | ||
border-width: 0 1vh 1vh 1vh; | ||
border-color: lightgrey; | ||
border-bottom-left-radius: 1vh; | ||
border-bottom-right-radius: 1vh; | ||
margin-top: -.4vh; | ||
font-size: 1.2vh; | ||
color: darkgrey; | ||
margin-top: .3vh; | ||
margin-right: .3vh; | ||
text-align: right; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,13 @@ | ||
.sheetHeader { | ||
overflow-y: hidden; | ||
overflow-x: hidden; | ||
display: flex; | ||
display: flex; | ||
background-color: lightgrey; | ||
border-style: solid; | ||
border-width: 1vh 1vh 0 1vh; | ||
border-color: lightgrey; | ||
border-top-left-radius: 1vh; | ||
border-top-right-radius: 1vh; | ||
} | ||
|
||
.sheetHeader span { | ||
display: inline-block; | ||
white-space: nowrap; | ||
margin-left: .5rem; | ||
margin-right: .5rem; | ||
margin-top: -.3vh; | ||
margin-bottom: .2vh; | ||
padding-left: .5rem; | ||
padding-right: .5rem; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,47 @@ | ||
.sheetRow { | ||
border-bottom: 1px solid #e0e0e0; | ||
overflow: hidden; | ||
display: flex; | ||
border-style: solid; | ||
border-width: 0vh 1vh 0 1vh; | ||
border-color: lightgrey; | ||
} | ||
|
||
.sheetCell, .sheetRow span { | ||
.measureCellText { | ||
display: inline-block; | ||
white-space: nowrap; | ||
margin-left: .5rem; | ||
margin-right: .5rem; | ||
padding-left: .5rem; | ||
padding-right: .5rem; | ||
} | ||
|
||
.sheetRowEven { | ||
composes: sheetRow; | ||
.sheetCell { | ||
display: inline-block; | ||
white-space: nowrap; | ||
padding-left: .5rem; | ||
padding-right: .5rem; | ||
background-color: #f2f2f2; | ||
} | ||
|
||
.sheetRowOdd { | ||
composes: sheetRow; | ||
.oddRow { | ||
background-color: #ffffff; | ||
} | ||
|
||
.sheetCellTopLeft { | ||
composes: sheetCell; | ||
border-style: hidden; | ||
border-top-left-radius: 1vh; | ||
} | ||
|
||
.sheetCellTopRight { | ||
composes: sheetCell; | ||
border-style: hidden; | ||
border-top-right-radius: 1vh; | ||
} | ||
|
||
.sheetCellBottomLeft { | ||
composes: sheetCell; | ||
border-style: hidden; | ||
border-bottom-left-radius: 1vh; | ||
} | ||
|
||
.sheetCellBottomRight { | ||
composes: sheetCell; | ||
border-style: hidden; | ||
border-bottom-right-radius: 1vh; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,32 @@ | ||
.scrollContainer { | ||
@value colors: "@/components/commonPalette.module.css"; | ||
@value button from colors; | ||
|
||
.headerScrollContainer { | ||
width: 90vw; /* I honestly don't understand why 90vw works and 100vw doesn't. Seems fragile. */ | ||
overflow-x: auto; | ||
overflow-x: clip; | ||
} | ||
|
||
.rowsScrollContainer { | ||
width: 90vw; | ||
overflow-y: auto; | ||
overflow-x: auto; | ||
display: inline-block; | ||
} | ||
|
||
.rowsScrollContainer:hover { | ||
scrollbar-color: button white; | ||
} | ||
|
||
.rowsInnerContainer { | ||
display: inline-block; | ||
} | ||
|
||
.sheetTable { | ||
width: max-content; | ||
display: inline-block; | ||
background-color: lightgrey; | ||
border-color: lightgrey; | ||
border-style: solid; | ||
border-width: .5vh .5vh 1vh .5vh; | ||
border-radius: 1vh; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters