Skip to content

Commit

Permalink
fix styling for global search project tags
Browse files Browse the repository at this point in the history
  • Loading branch information
m.kindritskiy committed Oct 17, 2024
1 parent d8894a9 commit d0c6b95
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 13 deletions.
8 changes: 7 additions & 1 deletion ui/src/Dashboard/Flag.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,13 @@ const FlagTitle = ({ isSearch, projectName, name }) => {

return (
<div>
{isSearch ? <Tag color="volcano" size="big">{projectName}</Tag> : null}
{isSearch ? <Tag
color="volcano"
size="big"
style={{
margin: '10px 0',
}}
>{projectName}</Tag> : null}
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}>
<div
className='flag-name'
Expand Down
4 changes: 3 additions & 1 deletion ui/src/Dashboard/Flags.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,9 @@ const Flags = ({ flags, isSearch }) => {
</AutoComplete>
)}
<List
className="flags-list"
style={{
paddingTop: isSearch ? '0' : '35px'
}}
itemLayout="horizontal"
dataSource={listData}
renderItem={(item) => (
Expand Down
4 changes: 0 additions & 4 deletions ui/src/Dashboard/Flags.less
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,3 @@
z-index: 90;
border: 1px solid rgba(255, 255, 0, 0.85);
}

.flags-list {
padding-top: 35px;
}
9 changes: 8 additions & 1 deletion ui/src/Dashboard/Value.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,14 @@ const ValueTitle = ({ isSearch, projectName, name, }) => {

return (
<div>
{isSearch ? <Tag color="volcano" size="big">{projectName}</Tag> : null}
{isSearch ? <Tag
color="volcano"
size="big"
style={{
marginTop: '10px',
marginBottom: '10px'
}}
>{projectName}</Tag> : null}
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}>
<div
className='value-name'
Expand Down
5 changes: 3 additions & 2 deletions ui/src/Dashboard/Values.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {
AutoComplete,
List,
Input,
Empty,
Typography,
} from 'antd';
import { SearchOutlined } from '@ant-design/icons';
Expand Down Expand Up @@ -146,7 +145,9 @@ const Values = ({ values, isSearch }) => {
</AutoComplete>
)}
<List
className="values-list"
style={{
paddingTop: isSearch ? '0' : '35px'
}}
itemLayout="horizontal"
dataSource={listData}
renderItem={(item) => (
Expand Down
4 changes: 0 additions & 4 deletions ui/src/Dashboard/Values.less
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,3 @@
z-index: 90;
border: 1px solid rgba(255, 255, 0, 0.85);
}

.values-list {
padding-top: 35px;
}

0 comments on commit d0c6b95

Please sign in to comment.