diff options
| author | usodhi <61431818+usodhi@users.noreply.github.com> | 2020-10-01 01:47:34 +0530 |
|---|---|---|
| committer | usodhi <61431818+usodhi@users.noreply.github.com> | 2020-10-01 01:47:34 +0530 |
| commit | 23c4f10e0bc3d7ec94a5c74df597cdddb23d1413 (patch) | |
| tree | 38c61f315baad6f941fd8f205937c1c9b0f0b13d /src/client/views | |
| parent | 5befdda055c9f22b8c8f12184d8db6424d130669 (diff) | |
added acl refresh ish button to panel and sharing menu
Diffstat (limited to 'src/client/views')
| -rw-r--r-- | src/client/views/PropertiesView.scss | 32 | ||||
| -rw-r--r-- | src/client/views/PropertiesView.tsx | 21 |
2 files changed, 34 insertions, 19 deletions
diff --git a/src/client/views/PropertiesView.scss b/src/client/views/PropertiesView.scss index 47d8aacea..9fdc8bc47 100644 --- a/src/client/views/PropertiesView.scss +++ b/src/client/views/PropertiesView.scss @@ -121,19 +121,30 @@ padding: 10px; margin-left: 5px; - .propertiesView-acls-checkbox { + .propertiesView-buttonContainer { float: right; - height: 20px; - margin-top: -20px; - margin-right: -15; - - .propertiesView-acls-checkbox-text { - font-size: 7px; - margin-top: -10px; - margin-left: 6px; + display: flex; + + button { + width: 15; + height: 15; + padding: 0; + margin-top: -5; + } + + .propertiesView-acls-checkbox { + margin-top: -20px; + + .propertiesView-acls-checkbox-text { + font-size: 7px; + margin-top: -10px; + margin-left: 6px; + } } } + + .change-buttons { display: flex; @@ -247,8 +258,7 @@ } .expansion-button { - margin-left: -22.5; - margin: 3; + margin-left: -20; .expansion-button-icon { width: 11px; diff --git a/src/client/views/PropertiesView.tsx b/src/client/views/PropertiesView.tsx index 5877c1d6d..5cab7726e 100644 --- a/src/client/views/PropertiesView.tsx +++ b/src/client/views/PropertiesView.tsx @@ -901,14 +901,19 @@ export class PropertiesView extends React.Component<PropertiesViewProps> { </div> {!this.openSharing ? (null) : <div className="propertiesView-sharing-content"> - {!novice ? (<div className="propertiesView-acls-checkbox"> - <Checkbox - color="primary" - onChange={action(() => this.layoutDocAcls = !this.layoutDocAcls)} - checked={this.layoutDocAcls} - />; - <div className="propertiesView-acls-checkbox-text">Layout</div> - </div>) : (null)} + <div className="propertiesView-buttonContainer"> + {!novice ? (<div className="propertiesView-acls-checkbox"> + <Checkbox + color="primary" + onChange={action(() => this.layoutDocAcls = !this.layoutDocAcls)} + checked={this.layoutDocAcls} + /> + <div className="propertiesView-acls-checkbox-text">Layout</div> + </div>) : (null)} + <button onPointerDown={() => SharingManager.Instance.distributeOverCollection(this.selectedDoc!)}> + <FontAwesomeIcon icon="redo-alt" color="white" size="1x" /> + </button> + </div> {this.sharingTable} </div>} </div> |
