Skip to content

Commit

Permalink
Merge pull request #2289 from nextcloud/fix/2267-table-tweaks
Browse files Browse the repository at this point in the history
Fix/2267 table tweaks
  • Loading branch information
juliusknorr authored Apr 11, 2022
2 parents 8f2e26d + 1c3d0d8 commit 5219dab
Show file tree
Hide file tree
Showing 13 changed files with 26 additions and 19 deletions.
4 changes: 2 additions & 2 deletions js/editor.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/editor.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/text-files.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/text-files.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/text-public.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/text-public.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/text-text.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/text-text.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/text-viewer.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/text-viewer.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/nodes/TableCellView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<NodeViewWrapper as="td">
<div class="container">
<NodeViewContent class="content" />
<Actions>
<Actions v-if="editor.isEditable">
<ActionButton icon="icon-add_row_before"
:close-after-click="true"
@click="addRowBefore">
Expand Down
2 changes: 1 addition & 1 deletion src/nodes/TableHeaderView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<NodeViewWrapper as="th">
<div>
<NodeViewContent class="content" />
<Actions>
<Actions v-if="editor.isEditable">
<ActionButton icon="icon-add_col_before"
:close-after-click="true"
@click="addColumnBefore">
Expand Down
11 changes: 9 additions & 2 deletions src/nodes/TableView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@
-->

<template>
<NodeViewWrapper>
<NodeViewWrapper class="table-wrapper">
<NodeViewContent class="content" as="table" />
<Actions :force-menu="true"
<Actions v-if="editor.isEditable"
:force-menu="true"
class="table-settings"
default-icon="icon-table_settings">
<ActionButton icon="icon-delete"
Expand All @@ -32,6 +33,7 @@
{{ t('text', 'Delete this table') }}
</ActionButton>
</Actions>
<div class="clearfix" />
</NodeViewWrapper>
</template>

Expand Down Expand Up @@ -66,6 +68,10 @@ export default {

<style scoped lang="scss">

.clearfix {
clear: both;
}

table {
float: left;
}
Expand All @@ -78,4 +84,5 @@ table {
opacity: 1;
}
}

</style>

0 comments on commit 5219dab

Please sign in to comment.