-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(notifications): text overflow for notifications
- Loading branch information
1 parent
28cee7f
commit f169deb
Showing
7 changed files
with
86 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,32 @@ | ||
#alerts { | ||
transition: all @animation-speed ease; | ||
} | ||
.alerts-clear-button { | ||
margin-bottom: 5px; | ||
box-shadow: none !important; | ||
position: absolute; | ||
display: flex; | ||
flex-direction: column; | ||
gap: @light-spacing; | ||
|
||
top: 45px; | ||
left: -8px; | ||
max-height: 50vh; | ||
width: 27rem; | ||
padding: @light-spacing @xlight-spacing; | ||
cursor: default; | ||
overflow-y: scroll; | ||
&:extend(.background-semitransparent-light); | ||
&:extend(.round-corners); | ||
&:extend(.bordered); | ||
&:extend(.blur); | ||
|
||
.header { | ||
.subtitle { | ||
font-size: @micro-text-size !important; | ||
font-family: @primary-font; | ||
} | ||
font-size: @micro-text-size !important; | ||
font-family: @primary-font; | ||
} | ||
|
||
button { | ||
flex-shrink: 0; | ||
width: fit-content; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 12 additions & 10 deletions
22
components/views/navigation/toolbar/alerts/alert/Alert.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
<div class="alert"> | ||
<div> | ||
<!--Optional alert image --> | ||
<img v-if="alert.content.image" :src="alertImage" /> | ||
<UiCircle v-else type="random" data-cy="circle-without-picture" /> | ||
</div> | ||
<div class="info-holder"> | ||
<div class="a-heading"> | ||
<UiCircle | ||
:type="alertImage ? 'image' : 'random'" | ||
:source="alertImage" | ||
:data-cy="alertImage ? 'satellite-circle-profile' : 'circle-without-picture'" | ||
/> | ||
<div class="info-container"> | ||
<div class="head"> | ||
<TypographySubtitle :size="6" :text="alert.content.title" /> | ||
<TypographyText :text="$dayjs(alert.at).fromNow()" class="timestamp" /> | ||
</div> | ||
<div class="description"> | ||
<TypographyText :text="setTranslateText" /> | ||
</div> | ||
<TypographyText | ||
:text="setTranslateText" | ||
:title="setTranslateText" | ||
class="description" | ||
/> | ||
</div> | ||
<InteractablesClose :action="removeNotification" /> | ||
</div> |
74 changes: 30 additions & 44 deletions
74
components/views/navigation/toolbar/alerts/alert/Alert.less
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,46 @@ | ||
.alert { | ||
transition: all @animation-speed ease; | ||
opacity: 1; | ||
width: 95%; | ||
display: inline-flex; | ||
flex-direction: row; | ||
display: flex; | ||
gap: @light-spacing; | ||
&:extend(.blur); | ||
&:extend(.bordered); | ||
&:extend(.round-corners); | ||
overflow: hidden; | ||
padding: @light-spacing (@normal-spacing + @light-spacing) @light-spacing | ||
@light-spacing; | ||
justify-content: center; | ||
align-content: flex-start; | ||
margin-bottom: @light-spacing; | ||
padding: @light-spacing @large-spacing @light-spacing @light-spacing; | ||
align-items: center; | ||
position: relative; | ||
transition: all @animation-speed ease; | ||
|
||
.close-button { | ||
top: 0; | ||
right: 0; | ||
background: transparent; | ||
} | ||
|
||
img { | ||
max-width: 64px; | ||
max-height: 64px; | ||
&:extend(.round-corners); | ||
margin: 0 @light-spacing 0 0; | ||
vertical-align: top; | ||
} | ||
|
||
.info-holder { | ||
width: 100%; | ||
padding-left: 10px; | ||
.circle { | ||
flex-shrink: 0; | ||
} | ||
|
||
.a-heading { | ||
display: flex; | ||
&:extend(.full-width); | ||
.info-container { | ||
flex-grow: 1; | ||
&:extend(.ellipsis); | ||
|
||
.subtitle { | ||
margin-bottom: unset; | ||
&:extend(.full-width); | ||
font-size: @text-size; | ||
.head { | ||
display: flex; | ||
justify-content: space-between; | ||
.subtitle { | ||
font-size: @text-size; | ||
margin: 0; | ||
} | ||
.timestamp { | ||
&:extend(.font-muted); | ||
font-size: @micro-text-size; | ||
} | ||
} | ||
|
||
.timestamp { | ||
&:extend(.full-width); | ||
text-align: right; | ||
font-size: @micro-text-size; | ||
&:extend(.font-muted); | ||
align-self: flex-end; | ||
.description { | ||
font-size: @mini-text-size !important; | ||
margin-top: @light-spacing; | ||
&:extend(.ellipsis); | ||
} | ||
} | ||
.description > p { | ||
font-size: @mini-text-size !important; | ||
margin-top: @light-spacing; | ||
margin-bottom: 0; | ||
|
||
.close-button { | ||
top: 0; | ||
right: 0; | ||
background: transparent; | ||
} | ||
} |