Skip to content

Commit 60a6fbb

Browse files
committed
Some resizing
1 parent fac9224 commit 60a6fbb

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

assets/javascripts/discourse/initializers/extend-for-translate-button.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@ function initializeTranslation(api) {
2323
{ before: ["search"] }
2424
);
2525
}
26-
2726
if (siteSettings.experimental_topic_translation) {
28-
api.renderInOutlet("timeline-controls-before", ShowOriginalContent);
27+
api.renderInOutlet("topic-navigation", ShowOriginalContent);
2928
} else {
3029
customizePostMenu(api);
3130
}

assets/stylesheets/common/common.scss

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,18 @@
33
max-height: 50vh;
44
}
55

6-
.timeline-controls {
7-
display: flex;
6+
.topic-navigation.with-timeline .discourse-translator_toggle-original {
7+
margin-bottom: 0.5em;
8+
}
89

9-
.discourse-translator_toggle-original {
10-
margin-right: 0.5em;
10+
.topic-navigation.with-topic-progress
11+
.discourse-translator_toggle-original
12+
button {
13+
height: 100%;
14+
}
1115

12-
button.active svg {
13-
color: var(--tertiary);
14-
}
16+
.discourse-translator_toggle-original {
17+
button.active svg {
18+
color: var(--tertiary);
1519
}
1620
}

0 commit comments

Comments
 (0)