Slide sorter: presentation toolbar: Remove ui break
There is no need to add a visual break/divider between "Fullscreen presentation" and the "Insert Slide" buttons: 1. They are visually very well distinctive so there seems to be not a need for a division 2. There is not so much white space so the more we can reduce visually the better Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com> Change-Id: I27b84782e5af987d9aec3734f7557c746a03667cpull/8999/head
parent
c54683f349
commit
45c51c42de
|
@ -54,11 +54,6 @@ class PresentationBar {
|
|||
text: this._getItemUnoName('presentation'),
|
||||
command: 'presentation'
|
||||
},
|
||||
{
|
||||
id: 'presentationbreak',
|
||||
type: 'separator',
|
||||
orientation: 'vertical',
|
||||
},
|
||||
{
|
||||
id: 'insertpage',
|
||||
type: 'customtoolitem',
|
||||
|
@ -100,7 +95,6 @@ class PresentationBar {
|
|||
|
||||
if (this.map.getDocType() === 'drawing') {
|
||||
this.showItem('presentation', false);
|
||||
this.showItem('presentationbreak', false);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -144,14 +138,12 @@ class PresentationBar {
|
|||
onWopiProps(e) {
|
||||
if (e.HideExportOption) {
|
||||
this.showItem('presentation', false);
|
||||
this.showItem('presentationbreak', false);
|
||||
}
|
||||
}
|
||||
|
||||
onDocLayerInit() {
|
||||
if (!this.map['wopi'].HideExportOption && this.map.getDocType() !== 'drawing') {
|
||||
this.showItem('presentation', true);
|
||||
this.showItem('presentationbreak', true);
|
||||
}
|
||||
|
||||
if (!window.mode.isMobile())
|
||||
|
|
Loading…
Reference in New Issue