added temp db files to gitignore, added link to login page to index, changed around the comment form, comments and posts
This commit is contained in:
parent
f57338ab51
commit
bdb2d0a0b5
7 changed files with 65 additions and 12 deletions
|
@ -47,9 +47,9 @@
|
|||
}
|
||||
|
||||
.threadImage img:hover{
|
||||
transform: scale(3);
|
||||
/*max-width:500px;
|
||||
width: 100%; */
|
||||
/*transform: scale(3);*/
|
||||
max-width:500px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.threadText{
|
||||
|
|
|
@ -13,16 +13,29 @@
|
|||
<div class="pd centered">
|
||||
<span>Comment on @post.Title in /@post.Board/</span>
|
||||
|
||||
<div class="pd centered marg">
|
||||
<RadzenTextBox Placeholder="Username (Anonymous)" MaxLength="15" Change=@(args => OnChange(args, "username")) Class="w-100"/>
|
||||
</div>
|
||||
<div class="centered formContent">
|
||||
<div>
|
||||
<div class="pd centered marg">
|
||||
@if (image != null)
|
||||
{
|
||||
<img class="formImage" src="@($"data:image/png;base64,{Convert.ToBase64String(image)}")" alt="No Image"/>
|
||||
}
|
||||
</div>
|
||||
<InputFile OnChange="@SingleUpload" type="file" accept="image/*"/>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<div class="pd centered marg">
|
||||
<RadzenTextBox Placeholder="Username (Anonymous)" MaxLength="15" Change=@(args => OnChange(args, "username")) Class="w-100"/>
|
||||
</div>
|
||||
|
||||
<div class="pd centered marg">
|
||||
<RadzenTextArea Placeholder="Comment..." @bind-Value="@postContent" Cols="30" Rows="6" Change=@(args => OnChange(args, "Content")) Class="w-100"/>
|
||||
<div class="pd centered marg">
|
||||
<RadzenTextArea Placeholder="Comment..." @bind-Value="@postContent" Cols="30" Rows="6" Change=@(args => OnChange(args, "Content")) Class="w-100"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="pd centered marg">
|
||||
<InputFile OnChange="@SingleUpload" type="file" accept="image/*"/>
|
||||
<RadzenButton class="pd" Click="@onPostClick" Text="Comment!"></RadzenButton>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -20,4 +20,21 @@
|
|||
|
||||
.marg{
|
||||
margin: 2px
|
||||
}
|
||||
|
||||
.formImage{
|
||||
margin: 6px;
|
||||
max-width: 200px;
|
||||
max-height: 200px;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.formImage img{
|
||||
max-width:150px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.formContent{
|
||||
text-align: left;
|
||||
display: flex;
|
||||
}
|
|
@ -47,9 +47,9 @@
|
|||
}
|
||||
|
||||
.threadImage img:hover{
|
||||
transform: scale(3);
|
||||
/*max-width:500px;
|
||||
width: 100%; */
|
||||
/*transform: scale(3);*/
|
||||
max-width:500px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.threadText{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue