1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

UI update

This commit is contained in:
KRIS LIEW 2021-06-09 16:37:22 +08:00 committed by KY Lau
parent bfe70a3ff7
commit 5060f612b5
3 changed files with 21 additions and 9 deletions

View File

@ -20,7 +20,7 @@
"type": "credential"
},
{
"name": "isDisable",
"name": "isOrderDisabled",
"label": "Disable Consumption",
"help": "Disable dataset being consume when dataset undergoing maintenance.",
"type": "checkbox",

View File

@ -23,19 +23,29 @@
display: block;
}
.buttonWrapper {
width: 100%;
text-align: right;
}
.crossButton {
min-width: 0;
}
.crossButton svg {
display: inline-block;
width: var(--font-size-large);
height: var(--font-size-large);
fill: var(--brand-pink);
transform: rotate(90deg);
vertical-align: middle;
}
.scroll {
border-top: 1px solid var(--border-color);
margin-top: calc(var(--spacer) / 4);
min-height: fit-content;
max-height: 50vh;
max-height: 200px;
position: relative;
overflow: auto;
-webkit-overflow-scrolling: touch;

View File

@ -63,6 +63,7 @@ export default function Credential(props: InputProps) {
return (
<div className={styles.chip} key={value}>
{value}
<span className={styles.buttonWrapper}>
<Button
className={styles.crossButton}
style="text"
@ -70,6 +71,7 @@ export default function Credential(props: InputProps) {
>
<Cross />
</Button>
</span>
</div>
)
})}