Alignment of emoji

master
Bob Mottram 2019-08-09 18:42:11 +01:00
parent 692fd7399a
commit de382b87a4
4 changed files with 7 additions and 7 deletions

View File

@ -93,7 +93,7 @@ def addEmoji(baseDir: str,wordStr: str,httpPrefix: str,domain: str,replaceEmoji:
'type': 'Emoji' 'type': 'Emoji'
} }
replaceEmoji[wordStr]= \ replaceEmoji[wordStr]= \
"<img src=\""+emojiUrl+"\" class=\"emoji\"/>" "<img src=\""+emojiUrl+"\" alt=\""+emoji+"\" align=\"middle\" class=\"emoji\"/>"
return True return True
def addMention(wordStr: str,httpPrefix: str,following: str,replaceMentions: {},recipients: []) -> bool: def addMention(wordStr: str,httpPrefix: str,following: str,replaceMentions: {},recipients: []) -> bool:

View File

@ -513,7 +513,7 @@ class PubServer(BaseHTTPRequestHandler):
with open(emojiFilename, 'rb') as avFile: with open(emojiFilename, 'rb') as avFile:
emojiBinary = avFile.read() emojiBinary = avFile.read()
self.wfile.write(emojiBinary) self.wfile.write(emojiBinary)
return return
self._404() self._404()
return return
# show media # show media

View File

@ -80,6 +80,7 @@ body, html {
.hero-text img.emoji { .hero-text img.emoji {
width: 50px; width: 50px;
float: none;
} }
.hero-text button { .hero-text button {
@ -294,10 +295,7 @@ body, html {
.container img.emoji { .container img.emoji {
width: 50px; width: 50px;
padding: 0px 7px; float: none;
margin-right: 20px;
border-radius: 10%;
float: center;
} }
.containericons { .containericons {

View File

@ -375,7 +375,9 @@ def updateHashtagsIndex(baseDir: str,tag: {},newPostId: str) -> None:
"""Writes the post url for hashtags to a file """Writes the post url for hashtags to a file
This allows posts for a hashtag to be quickly looked up This allows posts for a hashtag to be quickly looked up
""" """
# create hashtags directory if tag['type']!='Hashtag':
return
# create hashtags directory
tagsDir=baseDir+'/tags' tagsDir=baseDir+'/tags'
if not os.path.isdir(tagsDir): if not os.path.isdir(tagsDir):
os.mkdir(tagsDir) os.mkdir(tagsDir)