mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 20:36:39 +08:00
UX: adjustments for topic title editing
This commit is contained in:
parent
0caa335ef0
commit
ceaadf6246
|
@ -18,18 +18,15 @@
|
|||
|
||||
{{text-field id="edit-title" value=buffered.title maxlength=siteSettings.max_topic_title_length autofocus="true"}}
|
||||
{{#if showCategoryChooser}}
|
||||
<br>
|
||||
{{category-chooser class="small" value=buffered.category_id}}
|
||||
{{/if}}
|
||||
|
||||
{{#if canEditTags}}
|
||||
<br>
|
||||
{{tag-chooser tags=buffered.tags categoryId=buffered.category_id}}
|
||||
{{/if}}
|
||||
|
||||
{{plugin-outlet name="edit-topic" args=(hash model=model buffered=buffered)}}
|
||||
|
||||
<br>
|
||||
<div class="edit-controls">
|
||||
{{d-button action="finishedEditingTopic" class="btn-primary btn-small submit-edit" icon="check"}}
|
||||
{{d-button action="cancelEditingTopic" class="btn-small cancel-edit" icon="times"}}
|
||||
|
|
|
@ -179,24 +179,29 @@
|
|||
sup sup, sub sup, sup sub, sub sub { top: 0; }
|
||||
|
||||
// inline editing of title on mobile
|
||||
.title-wrapper {
|
||||
#topic-title .title-wrapper {
|
||||
position: relative;
|
||||
float: none;
|
||||
width: 100%;
|
||||
|
||||
input#edit-title {
|
||||
width: 95%;
|
||||
padding: 5px;
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
height: 32px;
|
||||
}
|
||||
|
||||
.select2-container {
|
||||
box-sizing: border-box;
|
||||
width: 100% !important;
|
||||
}
|
||||
.btn-small {
|
||||
padding: 8px 12px;
|
||||
margin: 6px 6px 0 0;
|
||||
}
|
||||
.select2-container {
|
||||
margin-top: 8px;
|
||||
width: 95% !important;
|
||||
}
|
||||
.category-chooser {
|
||||
margin-top: 8px;
|
||||
width: 95%;
|
||||
|
||||
.select-box-kit.combo-box.category-chooser {
|
||||
width: 100%;
|
||||
margin-top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user