File tree Expand file tree Collapse file tree
playwright/e2e/print.spec.ts-snapshots Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -341,12 +341,11 @@ div.ProseMirror {
341341
342342 table {
343343 border-spacing : 0 ;
344- width : calc (100% - 50px - var (--default-clickable-area ));
344+ // Needs to be sync with `.table-add-row` button width in `TableView.vue`
345+ width : calc (100% - (2 * var (--clickable-area-small )) - 8px );
345346 table-layout : auto ;
346347 white-space : normal ; // force text to wrapping
347- margin-bottom : calc (
348- var (--clickable-area-small ) + var (--default-clickable-area )
349- );
348+ margin-bottom : calc (var (--clickable-area-small ) + 8px );
350349 & + * {
351350 margin-top : 1em ;
352351 }
Original file line number Diff line number Diff line change 77 <NodeViewWrapper data-text-el =" table-cell" as =" td" :dir =" dir" :style =" textAlign" >
88 <div class =" container" >
99 <NodeViewContent class =" content" />
10- <NcActions v-if =" isEditable" data-text-table-actions =" row" >
10+ <NcActions v-if =" isEditable" data-text-table-actions =" row" size = " small " >
1111 <NcActionButton
1212 data-text-table-action =" add-row-before"
1313 close-after-click
@@ -141,10 +141,10 @@ td {
141141
142142 .action-item {
143143 position : absolute ;
144- right : -48 px ;
144+ right : calc (( var ( --clickable-area-small ) * -1 ) - 4 px ) ;
145145 flex : 0 1 auto ;
146146 display : none ;
147- top : 2 px ;
147+ top : calc (( var ( --default-clickable-area ) - var ( --clickable-area-small )) / 2 ) ;
148148 }
149149
150150 & :last-child {
Original file line number Diff line number Diff line change 1414 <NcActions
1515 v-if =" isEditable"
1616 ref =" menu"
17+ size =" small"
1718 variant =" tertiary-no-background"
1819 data-text-table-actions =" header" >
1920 <NcActionButtonGroup >
214215 }
215216
216217 .action-item {
218+ top : calc ((var (--default-clickable-area ) - var (--clickable-area-small )) / 2 );
217219 opacity : 50% ;
218220 }
219221
Original file line number Diff line number Diff line change 1111 <NcActions
1212 v-if =" isEditable"
1313 force-menu
14+ size =" small"
1415 data-text-table-actions =" settings"
1516 class =" table-settings" >
1617 <template #icon >
3031 <NcButton
3132 v-if =" isEditable"
3233 class =" table-add-column"
34+ size =" small"
3335 :aria-label =" t('text', 'Add column after')"
3436 :title =" t('text', 'Add column after')"
3537 @click =" addColumnAfter" >
4042 <NcButton
4143 v-if =" isEditable"
4244 class =" table-add-row"
45+ size =" small"
4346 :aria-label =" t('text', 'Add row below')"
4447 :title =" t('text', 'Add row below')"
4548 @click =" addRowAfter" >
@@ -154,8 +157,8 @@ export default {
154157 padding-left : 3px ;
155158 opacity : 0.5 ;
156159 position : absolute ;
157- top : 0 ;
158- right : var (--default- clickable-area );
160+ top : calc (( var ( --default-clickable-area ) - var ( --clickable-area-small )) / 2 ) ;
161+ right : calc ( var (--clickable-area-small ) + 4 px );
159162
160163 & :hover {
161164 opacity : 1 ;
@@ -169,7 +172,7 @@ export default {
169172 position : absolute ;
170173 top : var (--default-clickable-area );
171174 right : 0 ;
172- bottom : 60 px ;
175+ bottom : calc ( var ( --clickable-area-small ) + 8 px ) ;
173176 margin-top : 0 !important ;
174177
175178 & :hover {
@@ -183,8 +186,9 @@ export default {
183186 opacity : 0.5 ;
184187 position : absolute ;
185188 left : 0 ;
186- bottom : 12px ;
187- width : calc (100% - 80px ) !important ;
189+ bottom : 4px ;
190+ // Needs to be in sync with table width in `prosemirror.css`
191+ width : calc (100% - (2 * var (--clickable-area-small )) - 8px ) !important ;
188192
189193 & :hover {
190194 opacity : 1 ;
You can’t perform that action at this time.
0 commit comments