Skip to content

Commit 20a0015

Browse files
authored
Remove broken placeholders (#507)
* Remove broken placeholders * Fix accidental delete of id="title"
1 parent 7f4f3ef commit 20a0015

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

src/LinkDotNet.Blog.Web/Features/Admin/BlogPostEditor/Components/CreateNewBlogPost.razor

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,7 @@
4646
<div class="card-body p-0">
4747
<div class="p-4 border-bottom">
4848
<div class="form-floating">
49-
<input type="text" class="form-control form-control-lg shadow-none fs-3 fw-semibold"
50-
id="title" placeholder="Enter your post title..."
51-
@oninput="args => model.Title = args.Value!.ToString()!"
49+
<input type="text" class="form-control form-control-lg shadow-none fs-3 fw-semibold" id="title" @oninput="args => model.Title = args.Value!.ToString()!"
5250
value="@model.Title"/>
5351
<label for="title" class="fw-bold">Post Title</label>
5452
</div>
@@ -155,9 +153,7 @@
155153
</div>
156154
<div class="card-body">
157155
<div class="form-floating">
158-
<InputText type="text" class="form-control" id="tags"
159-
placeholder="technology, programming, tutorial"
160-
@bind-Value="model.Tags" />
156+
<InputText type="text" class="form-control" id="tags" @bind-Value="model.Tags" />
161157
<label for="tags">Tags (comma separated)</label>
162158
</div>
163159
<small class="form-text text-muted mt-2">
@@ -228,18 +224,14 @@
228224
<div class="card-body">
229225
<div class="mb-3">
230226
<div class="form-floating">
231-
<InputText type="url" class="form-control" id="preview"
232-
placeholder="https://example.com/image.jpg"
233-
@bind-Value="model.PreviewImageUrl" />
227+
<InputText type="url" class="form-control" id="preview" @bind-Value="model.PreviewImageUrl" />
234228
<label for="preview">Primary Image URL</label>
235229
</div>
236230
<ValidationMessage For="() => model.PreviewImageUrl" class="text-danger small mt-1"></ValidationMessage>
237231
</div>
238232
<div class="mb-3">
239233
<div class="form-floating">
240-
<InputText type="url" class="form-control" id="fallback-preview"
241-
placeholder="https://example.com/fallback.jpg"
242-
@bind-Value="model.PreviewImageUrlFallback" />
234+
<InputText type="url" class="form-control" id="fallback-preview" @bind-Value="model.PreviewImageUrlFallback" />
243235
<label for="fallback-preview">Fallback Image URL</label>
244236
</div>
245237
<ValidationMessage For="() => model.PreviewImageUrlFallback" class="text-danger small mt-1"></ValidationMessage>

0 commit comments

Comments
 (0)