Skip to content

Commit af6c10d

Browse files
committed
fix: KTL-587: compiler info doesn't fit on a mobile screen
1 parent 0f636ed commit af6c10d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/executable-code/executable-fragment.monk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@
5151
<a class="compiler-info__open-editor-link" href="{{ crosslink }}" target="_blank" rel="noopener noreferrer">Open&nbsp;in&nbsp;Playground&nbsp;→</a>
5252
</div>
5353
{% endif %}
54-
<span>Target platform: {{ targetPlatform.printableName }}</span>
55-
<span>Running on kotlin v.{{ compilerVersion }}</span>
54+
<span class="compiler-info__target">Target: {{ targetPlatform.printableName }}</span>
55+
<span class="compiler-info__version">Running on v.{{ compilerVersion }}</span>
5656
</div>
5757
{% endif %}
5858
{% if (shorterHeight) %}<button class="executable-fragment-wrapper__shorter" :onclick={{ this.onShorterClick.bind(this) }}>more</button>{% endif %}

src/styles.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,10 @@ $wt-color-azure: #167dff;
459459
&__open-editor {
460460
flex: 1 1 0;
461461
}
462+
463+
&__target, &__version {
464+
white-space: nowrap;
465+
}
462466
}
463467

464468
.CodeMirror-hints {

0 commit comments

Comments
 (0)