mirror of
https://github.com/discourse/discourse.git
synced 2025-06-24 22:51:41 +08:00
UX: Better style for back button
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
{{#if showBackButton}}
|
{{#if showBackButton}}
|
||||||
<div class='progress-back-container'>
|
<div class='progress-back-container'>
|
||||||
{{d-button label="topic.timeline.back" class="btn-primary progress-back" action="goBack"}}
|
{{d-button label="topic.timeline.back" class="btn-primary progress-back" action="goBack" icon="arrow-down"}}
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
|
@ -18,7 +18,6 @@ function attachBackButton(widget) {
|
|||||||
className: 'btn btn-primary btn-small back-button',
|
className: 'btn btn-primary btn-small back-button',
|
||||||
label: 'topic.timeline.back',
|
label: 'topic.timeline.back',
|
||||||
title: 'topic.timeline.back_description',
|
title: 'topic.timeline.back_description',
|
||||||
icon: 'arrow-down',
|
|
||||||
action: 'goBack'
|
action: 'goBack'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -1,10 +1,9 @@
|
|||||||
.progress-back-container {
|
.progress-back-container {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
width: 0;
|
|
||||||
right: 0;
|
right: 0;
|
||||||
bottom: 40px;
|
bottom: 40px;
|
||||||
z-index: 950;
|
z-index: 950;
|
||||||
margin-right: 105px;
|
margin-right: 45px;
|
||||||
|
|
||||||
.btn {
|
.btn {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
Reference in New Issue
Block a user