mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Adds dots menu to access rules page item
Summary: In Access rules page item, adds “…” buttons that shows a menu of users to view-as: Test Plan: Include new nbrowser test Reviewers: jarek Reviewed By: jarek Differential Revision: https://phab.getgrist.com/D3751
This commit is contained in:
@@ -7,7 +7,9 @@ import {HomeModel} from 'app/client/models/HomeModel';
|
||||
import {getWorkspaceInfo, workspaceName} from 'app/client/models/WorkspaceInfo';
|
||||
import {addNewButton, cssAddNewButton} from 'app/client/ui/AddNewButton';
|
||||
import {docImport, importFromPlugin} from 'app/client/ui/HomeImports';
|
||||
import {cssLinkText, cssPageEntry, cssPageIcon, cssPageLink, cssSpacer} from 'app/client/ui/LeftPanelCommon';
|
||||
import {
|
||||
cssLinkText, cssMenuTrigger, cssPageEntry, cssPageIcon, cssPageLink, cssSpacer
|
||||
} from 'app/client/ui/LeftPanelCommon';
|
||||
import {createVideoTourToolsButton} from 'app/client/ui/OpenVideoTour';
|
||||
import {transientInput} from 'app/client/ui/transientInput';
|
||||
import {testId, theme} from 'app/client/ui2018/cssVars';
|
||||
@@ -255,23 +257,3 @@ export const cssEditorInput = styled(transientInput, `
|
||||
margin-right: 16px;
|
||||
font-size: inherit;
|
||||
`);
|
||||
|
||||
const cssMenuTrigger = styled('div', `
|
||||
margin: 0 4px 0 auto;
|
||||
height: 24px;
|
||||
width: 24px;
|
||||
padding: 4px;
|
||||
line-height: 0px;
|
||||
border-radius: 3px;
|
||||
cursor: default;
|
||||
display: none;
|
||||
.${cssPageLink.className}:hover > &, &.weasel-popup-open {
|
||||
display: block;
|
||||
}
|
||||
&:hover, &.weasel-popup-open {
|
||||
background-color: ${theme.pageOptionsHoverBg};
|
||||
}
|
||||
.${cssPageEntry.className}-selected &:hover, .${cssPageEntry.className}-selected &.weasel-popup-open {
|
||||
background-color: ${theme.pageOptionsSelectedHoverBg};
|
||||
}
|
||||
`);
|
||||
|
||||
Reference in New Issue
Block a user