-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#873 Add support for resource arrays in tables
- Loading branch information
Showing
21 changed files
with
862 additions
and
464 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
PR Checklist: | ||
## Related Issues | ||
|
||
- [ ] Link to related issues: #number | ||
closes #number | ||
|
||
## Checklist | ||
- [ ] Add changelog entry linking to issue, describe API changes | ||
- [ ] Add tests (optional) | ||
- [ ] (If new feature) add to description / readme | ||
- [ ] Add or update tests if needed | ||
- [ ] Update docs if needed |
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
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
63 changes: 63 additions & 0 deletions
63
browser/data-browser/src/views/TablePage/EditorCells/CellComponents.tsx
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 |
---|---|---|
@@ -0,0 +1,63 @@ | ||
import { styled } from 'styled-components'; | ||
import * as RadixPopover from '@radix-ui/react-popover'; | ||
import { Popover } from '../../../components/Popover'; | ||
|
||
export const AbsoluteCell = styled.div` | ||
position: absolute; | ||
display: flex; | ||
align-items: center; | ||
z-index: 10; | ||
left: 0; | ||
top: 0; | ||
background-color: ${p => p.theme.colors.bg}; | ||
box-shadow: ${p => p.theme.boxShadowSoft}; | ||
border: 2px solid ${p => p.theme.colors.main}; | ||
height: fit-content; | ||
width: 100%; | ||
padding-inline: var(--table-inner-padding); | ||
padding-block: 3px; | ||
min-height: 40px; | ||
`; | ||
|
||
export const SearchPopover = styled(Popover)` | ||
padding: 1rem; | ||
border: 1px solid ${p => p.theme.colors.bg2}; | ||
display: flex; | ||
flex-direction: column; | ||
gap: 1rem; | ||
`; | ||
|
||
export const SearchResultWrapper = styled.div` | ||
height: min(90vh, 20rem); | ||
width: min(90vw, 35rem); | ||
overflow-x: hidden; | ||
overflow-y: auto; | ||
ol { | ||
padding: 0; | ||
margin: 0; | ||
} | ||
li { | ||
list-style: none; | ||
&[data-selected='true'] button { | ||
background: ${p => p.theme.colors.main}; | ||
color: white; | ||
svg { | ||
color: white; | ||
} | ||
} | ||
} | ||
`; | ||
|
||
export const PopoverTrigger = styled(RadixPopover.Trigger)` | ||
border: none; | ||
background: none; | ||
color: ${p => p.theme.colors.main}; | ||
display: inline-flex; | ||
gap: 1ch; | ||
align-items: center; | ||
user-select: none; | ||
cursor: pointer; | ||
`; |
Oops, something went wrong.