Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-06-16 11:24:27 +0300
committerJulius Härtl <jus@bitgrid.net>2020-06-16 11:24:27 +0300
commit4c6e775bb8a601505aac22e7c402c04deb88224e (patch)
tree7d493dfc9a6328e85618dfb6f08309179ae12288 /src
parentf5cfa9abe63e693a4107f8549f70bc60be68f4c1 (diff)
Dot show empty workspace container if files are not creatable
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'src')
-rw-r--r--src/views/RichWorkspace.vue8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/views/RichWorkspace.vue b/src/views/RichWorkspace.vue
index 9c35cab87..e700ec7bf 100644
--- a/src/views/RichWorkspace.vue
+++ b/src/views/RichWorkspace.vue
@@ -21,7 +21,7 @@
-->
<template>
- <div v-if="enabled" id="rich-workspace" :class="{'icon-loading': !loaded || !ready, 'focus': focus, 'dark': darkTheme }">
+ <div v-if="enabled" id="rich-workspace" :class="{'icon-loading': !loaded || !ready, 'focus': focus, 'dark': darkTheme, 'creatable': canCreate}">
<div v-if="showEmptyWorkspace" class="empty-workspace" @click="createNew">
<p class="placeholder">
{{ t('text', 'Add notes, lists or links …') }}
@@ -158,15 +158,17 @@ export default {
}
</script>
-<style scoped>
+<style lang="scss" scoped>
#rich-workspace {
padding: 0 60px;
- min-height: 90px;
/* Slightly reduce vertical space */
margin-bottom: -24px;
text-align: left;
max-height: 0;
transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
+ &.creatable {
+ min-height: 90px;
+ }
}
/* For subfolders, where there are no Recommendations */