mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix long name layout in Cluster Settings (#3854)
* Fix long name layout in Cluster Settings Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com> * Clean up Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
parent
0485b74cf0
commit
2ef331e28d
@ -19,26 +19,12 @@
|
|||||||
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
.EntitySettings {
|
.entityName {
|
||||||
$spacing: $padding * 3;
|
@apply font-bold overflow-hidden;
|
||||||
|
word-break: break-word;
|
||||||
|
color: var(--textColorAccent);
|
||||||
// TODO: move sub-component styles to separate files
|
display: -webkit-box;
|
||||||
.admin-note {
|
/* Simulate text-overflow:ellipsis styles but for multiple text lines */
|
||||||
font-size: small;
|
-webkit-line-clamp: 3;
|
||||||
opacity: 0.5;
|
-webkit-box-orient: vertical;
|
||||||
margin-left: $margin;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.button-area {
|
|
||||||
margin-top: $margin * 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
.file-loader {
|
|
||||||
margin-top: $margin * 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
.Input, .Select {
|
|
||||||
margin-top: $padding;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -19,7 +19,7 @@
|
|||||||
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import "./entity-settings.scss";
|
import styles from "./entity-settings.module.css";
|
||||||
|
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { observable, makeObservable } from "mobx";
|
import { observable, makeObservable } from "mobx";
|
||||||
@ -98,7 +98,9 @@ export class EntitySettings extends React.Component<Props> {
|
|||||||
source={this.entity.metadata.source}
|
source={this.entity.metadata.source}
|
||||||
src={this.entity.spec.icon?.src}
|
src={this.entity.spec.icon?.src}
|
||||||
/>
|
/>
|
||||||
<h2>{this.entity.metadata.name}</h2>
|
<div className={styles.entityName}>
|
||||||
|
{this.entity.metadata.name}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<Tabs className="flex column" scrollable={false} onChange={this.onTabChange} value={this.activeTab}>
|
<Tabs className="flex column" scrollable={false} onChange={this.onTabChange} value={this.activeTab}>
|
||||||
{ groups.map((group, groupIndex) => (
|
{ groups.map((group, groupIndex) => (
|
||||||
@ -138,7 +140,6 @@ export class EntitySettings extends React.Component<Props> {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<SettingLayout
|
<SettingLayout
|
||||||
className="CatalogEntitySettings"
|
|
||||||
navigation={this.renderNavigation()}
|
navigation={this.renderNavigation()}
|
||||||
contentGaps={false}
|
contentGaps={false}
|
||||||
>
|
>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user