forked from provectus/kafka-ui
-
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.
Merge pull request #78 from gimral/feature/field-preview
[Fixes #6 ] Feature/field preview
- Loading branch information
Showing
17 changed files
with
648 additions
and
350 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
117 changes: 117 additions & 0 deletions
117
kafka-ui-react-app/src/components/Topics/Topic/Messages/PreviewFields.styled.ts
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,117 @@ | ||
import styled, { css } from 'styled-components'; | ||
import CloseIcon from 'components/common/Icons/CloseIcon'; | ||
import EditIcon from 'components/common/Icons/EditIcon'; | ||
|
||
export const PreviewFields = styled.div` | ||
height: 100%; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: space-between; | ||
h4 { | ||
margin-bottom: 8px; | ||
margin-top: 12px; | ||
padding-top: 8px; | ||
border-top: 1px solid | ||
${({ theme }) => theme.messagePreviewFilter.seperatorColor}; | ||
} | ||
`; | ||
|
||
export const InputWrapper = styled.div` | ||
margin-top: 10px; | ||
`; | ||
|
||
export const ButtonWrapper = styled.div` | ||
width: 100%; | ||
height: 64px; | ||
display: flex; | ||
justify-content: right; | ||
align-items: center; | ||
// padding-top: 20px; | ||
// margin-top: 20px; | ||
// gap: 10px; | ||
// border-top: 1px solid | ||
// ${({ theme }) => theme.messagePreviewFilter.seperatorColor}; | ||
`; | ||
|
||
export const ContentWrapper = styled.div` | ||
height: 100%; | ||
border-bottom: 1px solid | ||
${({ theme }) => theme.messagePreviewFilter.seperatorColor}; | ||
`; | ||
|
||
export const EditForm = styled.div` | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
padding: 0px 8px; | ||
margin-bottom: 4px; | ||
height: 40px; | ||
color: ${({ theme }) => theme.activeFilter.color}; | ||
background: ${({ theme }) => theme.activeFilter.backgroundColor}; | ||
border-radius: 4px; | ||
font-size: 14px; | ||
line-height: 20px; | ||
`; | ||
|
||
export const Field = styled.div` | ||
width: 100%; | ||
text-overflow: ellipsis; | ||
white-space: nowrap; | ||
overflow: hidden; | ||
margin-right: 5px; | ||
color: ${({ theme }) => theme.modal.color}; | ||
`; | ||
|
||
export const EditFilterIcon = styled.div( | ||
({ theme: { icons } }) => css` | ||
color: ${icons.editIcon.normal}; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
height: 32px; | ||
width: 32px; | ||
cursor: pointer; | ||
&:hover { | ||
${EditIcon} { | ||
fill: ${icons.editIcon.hover}; | ||
} | ||
} | ||
&:active { | ||
${EditIcon} { | ||
fill: ${icons.editIcon.active}; | ||
} | ||
} | ||
` | ||
); | ||
|
||
export const DeleteFilterIcon = styled.div( | ||
({ theme: { icons } }) => css` | ||
color: ${icons.closeIcon.normal}; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
height: 32px; | ||
width: 32px; | ||
cursor: pointer; | ||
svg { | ||
height: 14px; | ||
width: 14px; | ||
} | ||
&:hover { | ||
${CloseIcon} { | ||
fill: ${icons.closeIcon.hover}; | ||
} | ||
} | ||
&:active { | ||
${CloseIcon} { | ||
fill: ${icons.closeIcon.active}; | ||
} | ||
} | ||
` | ||
); |
Oops, something went wrong.