Skip to content

Commit

Permalink
fix alignment issues
Browse files Browse the repository at this point in the history
  • Loading branch information
aswallace committed Nov 20, 2024
1 parent 0c895c9 commit 883578d
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

.choice-group input:disabled + label {
cursor: not-allowed;
opacity: 0.5;
Expand Down
8 changes: 6 additions & 2 deletions packages/core/components/EditMetadata/EditMetadata.module.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
.combo-box {
width: 295px;
padding-top: var(--margin);
padding-bottom: var(--margin);
}

.choice-group {
padding-bottom: var(--margin);
}

.chips {
Expand Down Expand Up @@ -76,7 +80,7 @@
}

.text-field {
padding-top: var(--margin);
padding-bottom: var(--margin);
max-width: 300px;;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,15 @@
width: 100%;
}

.left-stack-item {
.stack-item-left {
padding-top: 5px;
width: 300px;
}

.right-stack-item {
.stack-item-center {
padding-bottom: 14px;
}

.stack-item-right {
width: 275px;
}
6 changes: 3 additions & 3 deletions packages/core/components/EditMetadata/MetadataDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default function EditMetadataDetailsList(props: DetailsListProps) {
return (
<div className={styles.wrapper}>
<Stack className={styles.stack} horizontal tokens={{ childrenGap: 20 }}>
<StackItem grow className={styles.leftStackItem}>
<StackItem grow className={styles.stackItemLeft}>
<h4>Existing values</h4>
<DetailsList
setKey="items"
Expand Down Expand Up @@ -94,10 +94,10 @@ export default function EditMetadataDetailsList(props: DetailsListProps) {
onRenderItemColumn={renderItemColumn}
/>
</StackItem>
<StackItem grow align="center">
<StackItem grow align="center" className={styles.stackItemCenter}>
<Icon iconName="Forward" />
</StackItem>
<StackItem grow className={styles.rightStackItem}>
<StackItem grow className={styles.stackItemRight}>
{/* TODO: Display different entry types depending on datatype of annotation */}
<TextField
label="Replace with"
Expand Down
1 change: 1 addition & 0 deletions packages/core/components/EditMetadata/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export default function EditMetadataForm() {
return (
<>
<ChoiceGroup
className={styles.choiceGroup}
defaultSelectedKey={editPathway}
onChange={(_ev, option) =>
setEditPathway(
Expand Down

0 comments on commit 883578d

Please sign in to comment.