Skip to content

Commit fe8596d

Browse files
committed
changing dialog
Signed-off-by: dartcafe <[email protected]>
1 parent d75923b commit fe8596d

File tree

6 files changed

+183
-250
lines changed

6 files changed

+183
-250
lines changed

src/components/Base/modules/InputDiv.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,14 +202,13 @@ const inputClass = computed(() => [
202202

203203
<template>
204204
<div :class="componentClass">
205-
<label v-if="label">
205+
<label v-if="label" :class="{ indented: useNumModifiers }">
206206
{{ label }}
207207
</label>
208208

209209
<div class="input-wrapper">
210210
<NcButton
211211
v-if="useNumModifiers && !useNumericVariant"
212-
class="date-add-button"
213212
:title="t('polls', 'minus')"
214213
:variant="'tertiary-no-background'"
215214
@click="subtract">
@@ -272,6 +271,9 @@ const inputClass = computed(() => [
272271
label {
273272
display: block;
274273
margin-bottom: 2px;
274+
&.indented {
275+
margin-inline-start: var(--default-clickable-area);
276+
}
275277
}
276278
277279
input {

src/components/Base/modules/LuxonPicker.vue

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function nextDay() {
4242

4343
<template>
4444
<div class="luxon-picker">
45-
<div v-if="label">{{ label }}</div>
45+
<label v-if="label" :class="{ indented: useDayButtons }">{{ label }}</label>
4646
<div class="date-time-picker">
4747
<NcButton
4848
v-if="useDayButtons"
@@ -68,10 +68,19 @@ function nextDay() {
6868
</template>
6969

7070
<style lang="scss" scoped>
71+
label {
72+
display: block;
73+
margin-bottom: 2px;
74+
&.indented {
75+
margin-inline-start: var(--default-clickable-area);
76+
}
77+
}
78+
7179
.luxon-picker {
7280
display: flex;
7381
flex-direction: column;
7482
}
83+
7584
.date-time-picker {
7685
display: flex;
7786
align-items: end;

src/components/Base/modules/StickyDiv.vue

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ const stickyClass = computed(() => ({
8888
}
8989
9090
.sticky-div.sticky-bottom-shadow::after {
91-
content: '';
9291
background: linear-gradient(
9392
to bottom,
9493
rgba(var(--color-box-shadow-rgb), 0.3),
@@ -99,12 +98,11 @@ const stickyClass = computed(() => ({
9998
width: 100%;
10099
height: 6px;
101100
bottom: -6px;
102-
left: 0px;
101+
inset-inline-start: 0px;
103102
z-index: -1;
104103
}
105104
106105
.sticky-div.sticky-right-shadow::after {
107-
content: '';
108106
background: linear-gradient(
109107
to right,
110108
rgba(var(--color-box-shadow-rgb), 0.3),
@@ -114,7 +112,7 @@ const stickyClass = computed(() => ({
114112
position: absolute;
115113
height: 100%;
116114
width: 6px;
117-
right: -6px;
115+
inset-inline-end: -6px;
118116
top: 0px;
119117
z-index: -1;
120118
}

src/components/Modals/OptionsAddModal.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ onUnmounted(() => {
8181
var(--border-radius-container-large) 0 0;
8282
}
8383
> div:last-child {
84+
padding-bottom: 1rem;
8485
border-radius: 0 0 var(--border-radius-container-large)
8586
var(--border-radius-container-large);
8687
}

0 commit comments

Comments
 (0)