Skip to content

Commit 8914039

Browse files
max width for micro color label (#5130)
1 parent e898127 commit 8914039

File tree

2 files changed

+18
-17
lines changed

2 files changed

+18
-17
lines changed

modules/@apostrophecms/color-field/ui/apos/components/AposInputColor.vue

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -139,19 +139,4 @@ export default {
139139
display: flex;
140140
}
141141
142-
.apos-field--micro {
143-
.apos-input-color__preset-button {
144-
width: 20px;
145-
height: 20px;
146-
}
147-
148-
.apos-input-color {
149-
gap: $spacing-half;
150-
}
151-
152-
.apos-input-color__ui {
153-
gap: 3px;
154-
}
155-
}
156-
157142
</style>

modules/@apostrophecms/ui/ui/apos/scss/global/_inputs.scss

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,22 +195,38 @@
195195
&.apos-field--color {
196196
position: relative;
197197

198+
.apos-input-color__preset-button {
199+
width: 20px;
200+
height: 20px;
201+
}
202+
203+
.apos-input-color {
204+
gap: $spacing-half;
205+
}
206+
207+
.apos-input-color__ui {
208+
gap: 3px;
209+
}
210+
198211
.apos-button.apos-button--color {
199212
width: 30px;
200213
height: 30px;
201214
padding: 0;
202215
}
203216

217+
.apos-field__label {
218+
max-width: 200px;
219+
}
220+
204221
.apos-input-color__info {
205222
position: absolute;
206223
right: 0;
207224
display: flex;
208225
place-content: center;
209-
height: 17px;
210226
margin-left: 0;
211227
font-size: var(--a-type-base);
212228
white-space: nowrap;
213-
transform: translateY(-25px);
229+
transform: translateY(-23.5px);
214230
line-height: 1.3;
215231
}
216232
}

0 commit comments

Comments
 (0)