Skip to content

Commit

Permalink
Merge pull request #11749 from nanaya/team-settings-description
Browse files Browse the repository at this point in the history
Adjust team description input area
  • Loading branch information
notbakaneko authored Dec 17, 2024
2 parents 1f46b13 + 1839678 commit 4c734d2
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 5 deletions.
12 changes: 12 additions & 0 deletions resources/css/bem/input-text.less
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,16 @@
padding: var(--input-padding);
box-shadow: inset 0 0 0 2px var(--input-border-colour);
border-radius: @border-radius-large;

&--bbcode {
.fancy-scrollbar();
display: grid;
grid-template-rows: 1fr auto;
gap: 5px;
}

&__bbcode-textarea {
.reset-input();
resize: none;
}
}
2 changes: 1 addition & 1 deletion resources/css/bem/team-settings-description-preview.less
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
.team-settings-description-preview {
padding: 0 var(--padding);
overflow-y: scroll;
max-height: calc(70 * var(--vh));
height: calc(70 * var(--vh));
}
11 changes: 7 additions & 4 deletions resources/views/teams/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,13 @@ class="team-settings__image"
<span class="input-container__label">
{{ osu_trans('teams.edit.description.label') }}
</span>
<textarea
name="team[description]"
class="input-text js-post-preview--auto"
>{{ $team->description }}</textarea>
<div class="input-text input-text--bbcode">
<textarea
name="team[description]"
class="input-text__bbcode-textarea js-post-preview--auto js-bbcode-body"
>{{ $team->description }}</textarea>
@include('forum._post_toolbar')
</div>
</label>

<div class="team-settings__description-preview u-fancy-scrollbar">
Expand Down

0 comments on commit 4c734d2

Please sign in to comment.