[frontend] layout tweaks
This commit is contained in:
parent
a661599edc
commit
e4029625d6
6 changed files with 17 additions and 15 deletions
|
@ -11,17 +11,17 @@
|
|||
</div>
|
||||
}
|
||||
<button class="btn" @onclick:stopPropagation="true">
|
||||
<Icon Name="Icons.ArrowUUpLeft"/>
|
||||
<Icon Name="Icons.ArrowUUpLeft" Size="1.3em"/>
|
||||
</button>
|
||||
<button class="btn" @onclick:stopPropagation="true">
|
||||
<Icon Name="Icons.ArrowsClockwise"/>
|
||||
<Icon Name="Icons.Repeat" Size="1.3em"/>
|
||||
</button>
|
||||
<button @onclick="Like" @onclick:stopPropagation="true" class="btn">
|
||||
@if (IsLiked)
|
||||
{
|
||||
<Icon Name="Icons.Heart" Pack="IconStyle.Fill"/>
|
||||
<Icon Name="Icons.Heart" Pack="IconStyle.Fill" Size="1.3em"/>
|
||||
}else {
|
||||
<Icon Name="Icons.Heart"/>
|
||||
<Icon Name="Icons.Heart" Size="1.3em"/>
|
||||
}
|
||||
@if (Likes > 0)
|
||||
{
|
||||
|
@ -29,10 +29,10 @@
|
|||
}
|
||||
</button>
|
||||
<button class="btn" @onclick:stopPropagation="true">
|
||||
<Icon Name="Icons.Smiley"/>
|
||||
<Icon Name="Icons.Smiley" Size="1.3em"/>
|
||||
</button>
|
||||
<button class="btn" @onclick:stopPropagation="true">
|
||||
<Icon Name="Icons.DotsThreeOutline"/>
|
||||
<Icon Name="Icons.DotsThreeOutline" Size="1.3em"/>
|
||||
</button>
|
||||
</div>
|
||||
@code {
|
||||
|
|
|
@ -7,16 +7,16 @@
|
|||
@switch (Visibility)
|
||||
{
|
||||
case NoteVisibility.Public:
|
||||
<Icon Name="Icons.Globe"/>
|
||||
<Icon Name="Icons.Globe" Size="1.3em"/>
|
||||
break;
|
||||
case NoteVisibility.Home:
|
||||
<Icon Name="Icons.House"/>
|
||||
<Icon Name="Icons.House" Size="1.3em"/>
|
||||
break;
|
||||
case NoteVisibility.Followers:
|
||||
<Icon Name="Icons.Lock"/>
|
||||
<Icon Name="Icons.Lock" Size="1.3em"/>
|
||||
break;
|
||||
case NoteVisibility.Specified:
|
||||
<Icon Name="Icons.Envelope"/>
|
||||
<Icon Name="Icons.Envelope" Size="1.3em"/>
|
||||
break;
|
||||
default:
|
||||
throw new ArgumentOutOfRangeException();
|
||||
|
|
|
@ -6,4 +6,5 @@
|
|||
width: 100%;
|
||||
align-items: center;
|
||||
overflow-anchor: none;
|
||||
overscroll-behavior: contain;
|
||||
}
|
|
@ -1,11 +1,11 @@
|
|||
.note-container {
|
||||
max-width: 40rem;
|
||||
min-width: 15rem;
|
||||
max-width: 50rem;
|
||||
min-width: 20rem;
|
||||
background-color: var(--foreground-color);
|
||||
padding: 1.5rem 1.5rem 1rem; /* top, left-right, bottom*/
|
||||
border-radius: 0.75rem;
|
||||
margin-top: 1rem;
|
||||
margin-right: 1.5rem;
|
||||
margin-left: 1.5rem;
|
||||
margin-right: 0.5rem;
|
||||
margin-left: 0.5rem;
|
||||
width: 100%;
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
@media (min-width: 701px) {
|
||||
@media (min-width: 701px) {t
|
||||
.sidebar {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
|
||||
line-height: 1.5;
|
||||
font-weight: 400;
|
||||
font-size: 15px;
|
||||
|
||||
color-scheme: light dark;
|
||||
color: rgba(255, 255, 255, 0.87);
|
||||
|
|
Loading…
Add table
Reference in a new issue