Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dashboard
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AURA
dashboard
Commits
680cf278
Commit
680cf278
authored
1 year ago
by
Konrad Mohrfeldt
Browse files
Options
Downloads
Patches
Plain Diff
feat: improve small-viewport-support in FormTable
parent
1a7e58bd
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/generic/FormTable.vue
+16
-12
16 additions, 12 deletions
src/components/generic/FormTable.vue
with
16 additions
and
12 deletions
src/components/generic/FormTable.vue
+
16
−
12
View file @
680cf278
<
template
>
<div
class=
"form-table
tw-grid tw-items-start tw-gap-3
"
>
<div
class=
"form-table"
>
<slot
/>
</div>
</
template
>
...
...
@@ -7,23 +7,27 @@
<
script
lang=
"ts"
setup
>
import
{
provide
}
from
'
vue
'
provide
(
'
formGroupClass
'
,
'
tw-contents
'
)
</
script
>
defineOptions
({
compatConfig
:
{
MODE
:
3
},
})
<
script
lang=
"ts"
>
export
default
{
compatConfig
:
{
MODE
:
3
,
},
}
provide
(
'
formGroupClass
'
,
'
md:tw-contents
'
)
</
script
>
<
style
scoped
>
<
style
lang=
"postcss"
scoped
>
.form-table {
grid-template-columns
:
fit-content
(
200px
)
minmax
(
0
,
2
fr
);
@apply tw-flex tw-flex-col tw-gap-3 md:tw-grid md:tw-items-start;
@media (min-width: theme('screens.md')) {
grid-template-columns: fit-content(200px) minmax(0, 2fr);
}
}
.form-table:deep(.form-group) {
@apply tw-mb-0;
}
.form-table:deep(.form-group-description) {
@apply
tw-flex-col;
@apply
md:
tw-flex-col
md:!tw-mb-0 tw-justify-self-start
;
}
</
style
>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment