mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-07 12:33:36 +09:00
Set input and textarea to display block (#1938)
## Description Browser default is inline, but with most certainty this is not practical PR is on top of https://github.com/webstudio-is/webstudio-builder/pull/1937 ## Steps for reproduction 1. add input, textarea 2. see they are rendered as display block on its own row ## Code Review - [ ] hi @TrySound , I need you to do - conceptual review (architecture, feature-correctness) - detailed review (read every line) - test it on preview ## Before requesting a review - [ ] made a self-review - [ ] added inline comments where things may be not obvious (the "why", not "what") ## Before merging - [ ] tested locally and on preview environment (preview dev login: 5de6) - [ ] updated [test cases](https://github.com/webstudio-is/webstudio-builder/blob/main/apps/builder/docs/test-cases.md) document - [ ] added tests - [ ] if any new env variables are added, added them to `.env.example` and the `builder/env-check.js` if mandatory --------- Co-authored-by: istarkov <istarkov@gmail.com> Co-authored-by: Bogdan Chadkin <trysound@yandex.ru>
This commit is contained in:
2 files changed
+11
-1
No files matched your search
@@ -10,7 +10,13 @@ import type { defaultTag } from "./input";
|
||||
import { props } from "./__generated__/input.props";
|
||||
|
||||
const presetStyle = {
|
||||
input,
|
||||
input: [
|
||||
...input,
|
||||
{
|
||||
property: "display",
|
||||
value: { type: "keyword", value: "block" },
|
||||
},
|
||||
],
|
||||
} satisfies PresetStyle<typeof defaultTag>;
|
||||
|
||||
export const meta: WsComponentMeta = {
|
||||
|
||||
@@ -14,6 +14,10 @@ const presetStyle = {
|
||||
...textarea,
|
||||
// resize doesn't work well while on canvas
|
||||
{ property: "resize", value: { type: "keyword", value: "none" } },
|
||||
{
|
||||
property: "display",
|
||||
value: { type: "keyword", value: "block" },
|
||||
},
|
||||
],
|
||||
} satisfies PresetStyle<typeof defaultTag>;
|
||||
|
||||
|
||||
Reference in new issue
Block a user