mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-24 08:48:47 +01:00
Aesthetic changes
- Icon change for "Unlisted" - Dynamic text size for compose field depending on char count
This commit is contained in:
parent
2def939821
commit
fcd29d4bdc
8 changed files with 23 additions and 13 deletions
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
#account-container .note {
|
#account-container .note {
|
||||||
font-size: 95%;
|
font-size: 95%;
|
||||||
line-height: 1.5;
|
line-height: 1.4;
|
||||||
}
|
}
|
||||||
#account-container .note:not(:has(p)) {
|
#account-container .note:not(:has(p)) {
|
||||||
/* Some notes don't have <p> tags, so we need to add some padding */
|
/* Some notes don't have <p> tags, so we need to add some padding */
|
||||||
|
|
|
@ -26,11 +26,20 @@
|
||||||
#compose-container textarea {
|
#compose-container textarea {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
height: 3em;
|
height: 4em;
|
||||||
min-height: 3em;
|
min-height: 4em;
|
||||||
max-height: 10em;
|
max-height: 10em;
|
||||||
resize: vertical;
|
resize: vertical;
|
||||||
|
line-height: 1.4;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (min-width: 40em) {
|
||||||
|
#compose-container textarea {
|
||||||
|
font-size: 150%;
|
||||||
|
font-size: calc(100% + 50% / var(--text-weight));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@keyframes appear-up {
|
@keyframes appear-up {
|
||||||
0% {
|
0% {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
|
|
|
@ -744,7 +744,6 @@ function Compose({
|
||||||
</div>
|
</div>
|
||||||
<text-expander ref={textExpanderRef} keys="@ # :">
|
<text-expander ref={textExpanderRef} keys="@ # :">
|
||||||
<textarea
|
<textarea
|
||||||
class="large"
|
|
||||||
ref={textareaRef}
|
ref={textareaRef}
|
||||||
placeholder={
|
placeholder={
|
||||||
replyToStatus
|
replyToStatus
|
||||||
|
@ -774,6 +773,7 @@ function Compose({
|
||||||
}}
|
}}
|
||||||
style={{
|
style={{
|
||||||
maxHeight: `${maxCharacters / 50}em`,
|
maxHeight: `${maxCharacters / 50}em`,
|
||||||
|
'--text-weight': (1 + charCount / 140).toFixed(1) || 1,
|
||||||
}}
|
}}
|
||||||
></textarea>
|
></textarea>
|
||||||
</text-expander>
|
</text-expander>
|
||||||
|
|
|
@ -44,6 +44,7 @@ const ICONS = {
|
||||||
'chevron-left': 'mingcute:left-line',
|
'chevron-left': 'mingcute:left-line',
|
||||||
reply: ['mingcute:share-forward-line', '180deg', 'horizontal'],
|
reply: ['mingcute:share-forward-line', '180deg', 'horizontal'],
|
||||||
thread: 'mingcute:route-line',
|
thread: 'mingcute:route-line',
|
||||||
|
group: 'mingcute:group-line',
|
||||||
};
|
};
|
||||||
|
|
||||||
function Icon({ icon, size = 'm', alt, title, class: className = '' }) {
|
function Icon({ icon, size = 'm', alt, title, class: className = '' }) {
|
||||||
|
|
|
@ -15,5 +15,4 @@ a.name-text.short:hover i {
|
||||||
|
|
||||||
.name-text .avatar {
|
.name-text .avatar {
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
margin-right: 4px;
|
|
||||||
}
|
}
|
|
@ -37,7 +37,7 @@
|
||||||
/* STATUS PRE META */
|
/* STATUS PRE META */
|
||||||
|
|
||||||
.status-pre-meta {
|
.status-pre-meta {
|
||||||
line-height: 1.5;
|
line-height: 1.4;
|
||||||
padding: 8px 16px 0;
|
padding: 8px 16px 0;
|
||||||
opacity: 0.75;
|
opacity: 0.75;
|
||||||
font-size: smaller;
|
font-size: smaller;
|
||||||
|
@ -61,7 +61,7 @@
|
||||||
.status {
|
.status {
|
||||||
display: flex;
|
display: flex;
|
||||||
padding: 16px 16px 20px;
|
padding: 16px 16px 20px;
|
||||||
line-height: 1.5;
|
line-height: 1.4;
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
@ -92,7 +92,7 @@
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
}
|
}
|
||||||
.status:not(.small) .container {
|
.status:not(.small) .container {
|
||||||
padding-left: 16px;
|
padding-left: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.status > .container > .meta {
|
.status > .container > .meta {
|
||||||
|
@ -170,7 +170,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.status .content-container.has-spoiler .spoiler {
|
.status .content-container.has-spoiler .spoiler {
|
||||||
margin: 8px 0;
|
margin: 4px 0;
|
||||||
font-size: 90%;
|
font-size: 90%;
|
||||||
border: 1px dashed var(--button-bg-color);
|
border: 1px dashed var(--button-bg-color);
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -199,7 +199,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.status .content {
|
.status .content {
|
||||||
margin-top: 8px;
|
margin-top: 2px;
|
||||||
}
|
}
|
||||||
.timeline-deck .status .content {
|
.timeline-deck .status .content {
|
||||||
max-height: 50vh;
|
max-height: 50vh;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
.notification {
|
.notification {
|
||||||
display: flex;
|
display: flex;
|
||||||
padding: 16px !important;
|
padding: 16px !important;
|
||||||
gap: 16px;
|
gap: 12px;
|
||||||
}
|
}
|
||||||
.only-mentions .notification:not(.mention),
|
.only-mentions .notification:not(.mention),
|
||||||
.only-mentions .timeline-empty {
|
.only-mentions .timeline-empty {
|
||||||
|
@ -62,6 +62,7 @@
|
||||||
}
|
}
|
||||||
.notification-content p:first-child {
|
.notification-content p:first-child {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
|
margin-bottom: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#mentions-option {
|
#mentions-option {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
export default {
|
export default {
|
||||||
public: 'earth',
|
public: 'earth',
|
||||||
unlisted: 'unlock',
|
unlisted: 'group',
|
||||||
private: 'lock',
|
private: 'lock',
|
||||||
direct: 'message',
|
direct: 'message',
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue