Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instructions textarea now fills available space #16

Merged
merged 1 commit into from
Mar 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/views/CollectionPageEdit/Instructions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const instructions = (props: IInstructionProps) => {
return (
<FlexLayout type='column' id='collection-instructions-edit' className='collection-instructions-edit'>

<FlexLayout.Fixed>
<FlexLayout.Fixed className='collection-instructions-container'>
<h4>{t('Instructions')}</h4>
<p>
{t('Instructions will be shown to the user before installation starts and can be reviewed in the Instructions tab. You can also add individual mod instructions in the Mods tab.')}
Expand Down
12 changes: 11 additions & 1 deletion style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ $collection-mod-image-height: 122px;
border-radius: $panel-border-radius;
border: 1px solid $panel-default-border;
flex: 1 2 100%;


}

h4,
Expand Down Expand Up @@ -1773,6 +1775,7 @@ ul.collection-mods-page-attrib-tooltip {
.panel-heading {
display: flex;
align-items: center;
background-color: transparent;
}
}

Expand All @@ -1798,7 +1801,7 @@ ul.collection-mods-page-attrib-tooltip {
}

#collection-instructions-area {
//height: 100%;
height: 100%;
resize: none;
}

Expand All @@ -1808,6 +1811,13 @@ ul.collection-mods-page-attrib-tooltip {
justify-content: flex-end;
}

.collection-instructions-container {
display: flex;
flex-direction: column;
height: 100%;
resize: none;
}

.textarea-install-collection-instructions {
flex: 1 1 0;
resize: none;
Expand Down