Skip to content

Commit 9cf8312

Browse files
committed
feat: composer changes
1 parent 0195bd1 commit 9cf8312

5 files changed

Lines changed: 18 additions & 14 deletions

File tree

static/less/composer.less

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,6 @@
9292

9393
.category-dropdown-menu {
9494
max-height: 300px;
95-
right: 0;
96-
left: auto;
9795
}
9896
}
9997
}
@@ -440,6 +438,14 @@
440438
opacity: 1;
441439
}
442440
}
441+
@media (min-width: @screen-md-max) {
442+
html.composing {
443+
.composer {
444+
left: 10%;
445+
width: 80%;
446+
}
447+
}
448+
}
443449

444450
@media (max-width: @screen-sm-max) {
445451
html.composing {

static/less/medium.less

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
.title, .handle {
1515
font-size: 22px;
16-
margin-left: -16px;
1716
padding: 4px 18px;
1817
}
1918
}

static/lib/composer/categoryList.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ define('composer/categoryList', ['categorySelector', 'taskbar'], function(catego
3838

3939
app.parseAndTranslate('partials/category-selector', {
4040
categories: categories,
41-
pullRight: true
41+
pullRight: false,
4242
}, function (html) {
4343
listContainer.append(html);
4444
selector = categorySelector.init(listContainer.find('[component="category-selector"]'), function (selectedCategory) {

static/templates/compose.tpl

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
</form>
1717

1818
<div class="title-container row">
19+
<!-- IF isTopic -->
20+
<div class="category-list-container"></div>
21+
<!-- ENDIF isTopic -->
1922
<!-- IF showHandleInput -->
2023
<div class="col-sm-3 col-md-12">
2124
<input class="handle form-control" type="text" tabindex="1" placeholder="[[topic:composer.handle_placeholder]]" value="{handle}" />
@@ -31,10 +34,6 @@
3134
<div class="quick-search-results-container"></div>
3235
</div>
3336
</div>
34-
35-
<!-- IF isTopic -->
36-
<div class="category-list-container col-lg-3 col-md-3"></div>
37-
<!-- ENDIF isTopic -->
3837
</div>
3938

4039
<div class="category-tag-row">
@@ -113,7 +112,7 @@
113112
[[modules:composer.compose]] <span class="help hidden"><i class="fa fa-question-circle"></i></span>
114113
<span class="toggle-preview hide">[[modules:composer.show_preview]]</span>
115114
</div>
116-
<textarea name="content" form="compose-form" class="write" tabindex="5"></textarea>
115+
<textarea name="content" form="compose-form" class="write" tabindex="5" placeholder="[[modules:composer.textarea.placeholder]]"></textarea>
117116
</div>
118117
<div class="col-md-6 hidden-sm hidden-xs preview-container">
119118
<div class="help-text">

static/templates/composer.tpl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
</div>
2020
</nav>
2121
<div class="row title-container">
22+
<!-- IF isTopic -->
23+
<div class="category-list-container hidden-sm hidden-xs"></div>
24+
<!-- ENDIF isTopic -->
25+
2226
<!-- IF showHandleInput -->
2327
<div data-component="composer/handle">
2428
<input class="handle form-control" type="text" tabindex="1" placeholder="[[topic:composer.handle_placeholder]]" value="{handle}" />
@@ -35,10 +39,6 @@
3539
</div>
3640
</div>
3741

38-
<!-- IF isTopic -->
39-
<div class="category-list-container hidden-sm hidden-xs"></div>
40-
<!-- ENDIF isTopic -->
41-
4242
<div class="pull-right draft-icon hidden-xs hidden-sm"></div>
4343

4444
<div class="btn-group pull-right action-bar hidden-sm hidden-xs">
@@ -119,7 +119,7 @@
119119
<span class="toggle-preview hide">[[modules:composer.show_preview]]</span>
120120
</div>
121121
<div class="pull-right draft-icon hidden-md hidden-lg"></div>
122-
<textarea class="write" tabindex="4"></textarea>
122+
<textarea class="write" tabindex="4" placeholder="[[modules:composer.textarea.placeholder]]"></textarea>
123123
</div>
124124
<div class="hidden-sm hidden-xs preview-container">
125125
<div class="help-text">

0 commit comments

Comments
 (0)