-
Notifications
You must be signed in to change notification settings - Fork 0
feat: アンケートの選択肢やタイトルが折り返されるように #154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 2 commits
bbcd1a0
cb52768
534bdb4
afa4059
db9163c
f50d494
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,6 +20,7 @@ const requiredRule = (v: unknown) => (v === undefined || v === null ? '必須項 | |
| :rules="[requiredRule]" | ||
| :disabled="!question.isOpen" | ||
| variant="underlined" | ||
| class="multi-line-select" | ||
| ></v-text-field> | ||
| <v-number-input | ||
| v-if="question.type === 'free_number'" | ||
|
|
@@ -30,6 +31,7 @@ const requiredRule = (v: unknown) => (v === undefined || v === null ? '必須項 | |
| :disabled="!question.isOpen" | ||
| variant="underlined" | ||
| control-variant="hidden" | ||
| class="multi-line-select" | ||
|
||
| ></v-number-input> | ||
| <v-select | ||
| v-if="question.type === 'single'" | ||
|
|
@@ -42,6 +44,7 @@ const requiredRule = (v: unknown) => (v === undefined || v === null ? '必須項 | |
| :items="question.options" | ||
| :item-value="(option) => option.id" | ||
| :item-title="(option) => option.content" | ||
| class="multi-line-select" | ||
| ></v-select> | ||
| <v-select | ||
| v-if="question.type === 'multiple'" | ||
|
|
@@ -55,5 +58,20 @@ const requiredRule = (v: unknown) => (v === undefined || v === null ? '必須項 | |
| :items="question.options" | ||
| :item-value="(option) => option.id" | ||
| :item-title="(option) => option.content" | ||
| class="multi-line-select" | ||
| ></v-select> | ||
| </template> | ||
|
|
||
| <style scoped> | ||
| .multi-line-select :deep(.v-select__selection-text) { | ||
| white-space: normal; | ||
| overflow: visible; | ||
| text-overflow: clip; | ||
| } | ||
|
|
||
| :global(.v-list-item-title) { | ||
| white-space: normal; | ||
| overflow: visible; | ||
| text-overflow: clip; | ||
| } | ||
|
||
| </style> | ||
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The class name "multi-line-select" is misleading when applied to a v-text-field component. This is a text input field, not a select element. Consider using a more accurate name like "multi-line-input" or "wrap-text" that better describes its purpose of allowing text wrapping.