1+ import React from 'react'
12import styled from 'styled-components'
23import { Checkbox } from 'uiSrc/components/base/forms/checkbox/Checkbox'
34import { Text , Title } from 'uiSrc/components/base/text'
45import { Theme } from 'uiSrc/components/base/theme/types'
5- import { FlexItem } from 'uiSrc/components/base/layout/flex'
6+ import { Col , FlexItem } from 'uiSrc/components/base/layout/flex'
67import { FormField } from 'uiSrc/components/base/forms/FormField'
78import { IconButton } from 'uiSrc/components/base/forms/buttons'
89import { CopyIcon } from 'uiSrc/components/base/icons'
910
1011export const PageTitle = styled ( Title ) . attrs ( {
11- size : 'M ' ,
12+ size : 'L ' ,
1213} ) `
1314 padding-bottom: ${ ( { theme } : { theme : Theme } ) => theme . core . space . space050 } ;
1415`
1516export const PageSubTitle = styled ( Text ) . attrs ( {
1617 size : 'S' ,
17- color : 'subdued' ,
1818 component : 'span' ,
1919} ) `
2020 padding-bottom: ${ ( { theme } : { theme : Theme } ) => theme . core . space . space100 } ;
@@ -26,12 +26,28 @@ export const SearchContainer = styled(FlexItem)`
2626export const SearchForm = styled ( FormField ) `
2727 width: 266px;
2828`
29- export const Footer = styled ( FlexItem ) . attrs ( {
30- grow : false ,
31- } ) `
29+ export const Footer = styled ( FlexItem ) . attrs < {
30+ grow ?: boolean | number
31+ padding ?: React . ComponentProps < typeof FlexItem > [ 'padding' ]
32+ } > ( ( { grow, padding } ) => ( {
33+ grow : grow ?? false ,
34+ padding : padding ?? 6 ,
35+ } ) ) `
3236 border-top: 1px solid
3337 ${ ( { theme } : { theme : Theme } ) => theme . semantic . color . border . neutral400 } ;
3438`
39+
40+ export const DatabaseContainer = styled ( Col ) `
41+ position: relative;
42+ padding: ${ ( { theme } : { theme : Theme } ) =>
43+ `${ theme . core . space . space250 } ${ theme . core . space . space200 } 0 ${ theme . core . space . space200 } ` } ;
44+ @media only screen and (min-width: 768px) {
45+ padding: ${ ( { theme } : { theme : Theme } ) =>
46+ `${ theme . core . space . space400 } ${ theme . core . space . space200 } 0 ${ theme . core . space . space400 } ` } ;
47+ max-width: calc(100vw - 95px);
48+ }
49+ `
50+
3551export const DatabaseWrapper = styled . div `
3652 height: auto;
3753 scrollbar-width: thin;
@@ -42,34 +58,36 @@ export const DatabaseWrapper = styled.div`
4258 theme . semantic . color . background . neutral100 } ;
4359 flex-grow: 1;
4460 overflow: hidden;
45-
46- .column_status {
47- text-transform: capitalize;
48- }
4961`
5062export const SelectAllCheckbox = styled ( Checkbox ) `
5163 & svg {
5264 margin: 0 !important;
5365 }
5466`
5567export const CellText = styled ( Text ) . attrs ( {
56- size : 'S ' ,
68+ size : 'M ' ,
5769 component : 'span' ,
58- } ) ``
59-
60- export const CopyPublicEndpointText = styled ( CellText ) `
70+ } ) `
6171 max-width: 100%;
6272 display: inline-block;
6373 width: auto;
6474 white-space: nowrap;
6575 text-overflow: ellipsis;
6676 overflow: hidden;
77+ `
78+
79+ export const CopyPublicEndpointText = styled ( CellText ) `
6780 vertical-align: top;
6881`
82+
83+ export const StatusColumnText = styled ( CellText ) `
84+ text-transform: capitalize;
85+ `
6986export const CopyBtn = styled ( IconButton ) . attrs ( {
7087 icon : CopyIcon ,
88+ size : 'L' ,
7189} ) `
72- margin-left: 25px ;
90+ margin-left: 15px ;
7391 opacity: 0;
7492 height: 0;
7593 transition: opacity 0.25s ease-in-out;
@@ -83,8 +101,6 @@ export const CopyTextContainer = styled.div`
83101 padding-right: 34px;
84102 position: relative;
85103 * {
86- color: ${ ( { theme } : { theme : Theme } ) =>
87- theme . semantic . color . text . primary500 } ;
88104 }
89105
90106 &:hover ${ CopyBtn } {
0 commit comments