Skip to content

Commit

Permalink
Replace custom input field with NcInputField
Browse files Browse the repository at this point in the history
Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
  • Loading branch information
JuliaKirschenheuter committed Aug 25, 2023
1 parent 85ff144 commit 12ecdb1
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 13 deletions.
21 changes: 14 additions & 7 deletions apps/user_status/src/components/CustomMessageInput.vue
Expand Up @@ -28,29 +28,28 @@
</NcButton>
</NcEmojiPicker>
<div class="custom-input__container">
<label class="hidden-visually" for="user_status_message">
{{ t('user_status', 'What is your status?') }}
</label>
<input id="user_status_message"
ref="input"
<NcInputField id="user_status_message"
maxlength="80"
:disabled="disabled"
:placeholder="$t('user_status', 'What is your status?')"
type="text"
:value="message"
@input="onChange">
type="text"
:label="t('user_status', 'What is your status?')"
@input="onChange" />
</div>
</div>
</template>

<script>
import NcButton from '@nextcloud/vue/dist/Components/NcButton.js'
import NcEmojiPicker from '@nextcloud/vue/dist/Components/NcEmojiPicker.js'
import NcInputField from '@nextcloud/vue/dist/Components/NcInputField.js'
export default {
name: 'CustomMessageInput',
components: {
NcInputField,
NcButton,
NcEmojiPicker,
},
Expand Down Expand Up @@ -135,5 +134,13 @@ export default {
border-radius: 0 var(--border-radius) var(--border-radius) 0;
}
}
::v-deep .button-vue--text-only {
padding-left: 0;
}
.custom-input__emoji-button {
padding-left: 8px;
}
}
</style>
4 changes: 2 additions & 2 deletions dist/user-status-modal-8299.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions dist/user-status-modal-8299.js.LICENSE.txt
@@ -1,3 +1,5 @@
/*! For license information please see NcEmojiPicker.js.LICENSE.txt */

/*! For license information please see NcInputField.js.LICENSE.txt */

/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
2 changes: 1 addition & 1 deletion dist/user-status-modal-8299.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/user_status-menu.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/user_status-menu.js.map

Large diffs are not rendered by default.

0 comments on commit 12ecdb1

Please sign in to comment.