Не подтверждена Коммит 851550e1 создал по автору Phil Hughes's avatar Phil Hughes
Просмотр файлов

fixed autosize textarea height

fixed preview mode height not matching
adding active icon
владелец 3c1e8f20
......@@ -237,7 +237,9 @@
</script>
<template>
<div :class="{ 'is-floating': floatingModeEnabled }">
<div
:class="{ 'is-floating': floatingModeEnabled }"
>
<issue-note-signed-out-widget v-if="!isLoggedIn" />
<ul
v-else
......
......@@ -41,6 +41,11 @@
this.$emit('toggleFloatingMode');
},
toggleFullScreen() {
if (this.floatingModeEnabled) {
this.toggleFloatingMode();
}
},
},
mounted() {
$(document).on('markdown-preview:show.vue', this.toggleMarkdownPreview);
......@@ -122,7 +127,11 @@
@click="toggleFloatingMode"
>
<i
class="fa fa-window-restore"
class="fa"
:class="{
'fa-window-restore': !floatingModeEnabled,
'fa-window-maximize': floatingModeEnabled,
}"
aria-hidden="true">
</i>
</button>
......@@ -133,7 +142,9 @@
data-container="body"
tabindex="-1"
title="Go full screen"
type="button">
type="button"
@click="toggleFullScreen"
>
<i
aria-hidden="true"
class="fa fa-arrows-alt fa-fw">
......
......@@ -78,7 +78,7 @@
}
.md-preview-holder {
min-height: 167px;
min-height: 171px;
padding: 10px 0;
overflow-x: auto;
}
......
......@@ -836,5 +836,9 @@ ul.notes {
margin-top: -1px;
background-color: $white-light;
border-top: 1px solid $white-normal;
.note-textarea {
height: 140px !important; // Need !important to override inline styles from autosize.js
}
}
}
Поддерживает Markdown
0% или .
You are about to add 0 people to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Пожалуйста, зарегистрируйтесь или чтобы прокомментировать