Fix issue where “Click to add topic” was being cut off
+ Moves the max-width property outside of the gr-editable-label component since that should be set by the owner. + Increases max-width so that the placeholder text isn’t cut off. Change-Id: Ife9e13c5f0c06908e05b2580b01b7612e14598f0
This commit is contained in:
@@ -37,6 +37,9 @@ limitations under the License.
|
|||||||
color: #666;
|
color: #666;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
gr-editable-label {
|
||||||
|
max-width: 9em;
|
||||||
|
}
|
||||||
.labelValueContainer:not(:first-of-type) {
|
.labelValueContainer:not(:first-of-type) {
|
||||||
margin-top: .25em;
|
margin-top: .25em;
|
||||||
}
|
}
|
||||||
|
@@ -18,14 +18,19 @@ limitations under the License.
|
|||||||
<dom-module id="gr-editable-label">
|
<dom-module id="gr-editable-label">
|
||||||
<template>
|
<template>
|
||||||
<style>
|
<style>
|
||||||
|
:host {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
input,
|
||||||
|
label {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
input {
|
input {
|
||||||
font: inherit;
|
font: inherit;
|
||||||
max-width: 8em;
|
|
||||||
}
|
}
|
||||||
label {
|
label {
|
||||||
color: #777;
|
color: #777;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
max-width: 8em;
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
Reference in New Issue
Block a user