Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,13 @@ class CompassExplain extends React.Component {
renderReadonly() {
return (
<div className="compass-explain-notice">
Explain plans on readonly views are not supported.
<div className="compass-explain-pill">
<i className="fa fa-lock" aria-hidden="true" />
Read-Only
</div>
<p className="compass-explain-message">
Explain plans on read-only views are not supported.
</p>
</div>
);
}
Expand Down
20 changes: 18 additions & 2 deletions src/internal-packages/explain/styles/compass-explain.less
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,22 @@
&-notice {
color: steelblue;
background-color: #b0e0e6;
border-radius: 5px;
padding: 15px;
padding: 0 15px 0 15px;
margin-bottom: 10px;
}

&-pill {
float: left;
margin: 13px 10px 13px 0;
border: 1px solid steelblue;
border-radius: 12px;
padding: 1px 9px;
}

&-message {
padding: 15px 0 15px;
}

// hacks for json view on explain tab
ol.document-list li.document-list-item ol.document-property-body li.document-property.array ol.document-property-body .document-property-key,
ol.document-list li.document-list-item ol.document-property-body li.document-property.object ol.document-property-body .document-property-key {
Expand All @@ -30,3 +41,8 @@
}
// end hacks
}

.fa.fa-lock {
font-size: 12px;
margin-right: 5px;
}
8 changes: 7 additions & 1 deletion src/internal-packages/indexes/lib/component/indexes.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,13 @@ class Indexes extends React.Component {
renderReadonly() {
return (
<div className="index-container-notice">
Readonly views may not contain indexes.
<div className="index-container-pill">
<i className="fa fa-lock" aria-hidden="true" />
Read-Only
</div>
<p className="index-container-message">
Read-only views may not contain indexes.
</p>
</div>
);
}
Expand Down
15 changes: 13 additions & 2 deletions src/internal-packages/indexes/styles/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,22 @@
&-notice {
color: steelblue;
background-color: #b0e0e6;
border-radius: 5px;
padding: 15px;
padding: 0 15px 0 15px;
margin-bottom: 10px;
}

&-pill {
float: left;
margin: 13px 10px 13px 0;
border: 1px solid steelblue;
border-radius: 12px;
padding: 1px 9px;
}

&-message {
padding: 15px 0 15px;
}

.column-container {
.column.main {
&::-webkit-scrollbar {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class SidebarCollection extends React.Component {
renderReadonly() {
if (this.props.readonly) {
return (
<i className="fa fa-eye" aria-hidden="true" />
<i className="fa fa-lock" aria-hidden="true" />
);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,13 @@ class Validation extends React.Component {
renderReadonly() {
return (
<div className="validation-notice">
Document validation rules may not be added to readonly views.
<div className="validation-pill">
<i className="fa fa-lock" aria-hidden="true" />
Read-Only
</div>
<p className="validation-message">
Document validation rules may not be added to read-only views.
</p>
</div>
);
}
Expand Down
15 changes: 13 additions & 2 deletions src/internal-packages/validation/styles/validation.less
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,22 @@
&-notice {
color: steelblue;
background-color: #b0e0e6;
border-radius: 5px;
padding: 15px;
padding: 0 15px 0 15px;
margin-bottom: 10px;
}

&-pill {
float: left;
margin: 13px 10px 13px 0;
border: 1px solid steelblue;
border-radius: 12px;
padding: 1px 9px;
}

&-message {
padding: 15px 0 15px;
}

&-rule-builder-wrapper {
// TODO work-around so that the dropdowns can be shown, otherwise they get cut off.
padding-bottom: 150px;
Expand Down