From 37f5b8c5680dd010b63378ee892b5a9b872ca0fa Mon Sep 17 00:00:00 2001 From: shylinux Date: Mon, 24 Aug 2020 19:07:14 +0800 Subject: [PATCH] opt some --- core/wiki/chart.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/wiki/chart.go b/core/wiki/chart.go index 3225a99c..2156bdfb 100644 --- a/core/wiki/chart.go +++ b/core/wiki/chart.go @@ -65,11 +65,15 @@ func (b *Block) Data(m *ice.Message, root interface{}) Chart { return b } func (b *Block) Draw(m *ice.Message, x, y int) Chart { + float := 0 + if strings.Contains(m.Option(ice.MSG_USERUA), "iPhone") { + float += 5 + } m.Echo(``, x+b.MarginX/2, y+b.MarginY/2, b.GetWidth(), b.GetHeight(), b.BackGround, b.RectData) m.Echo("\n") m.Echo(`%v`, - x+b.GetWidths()/2, y+b.GetHeights()/2, b.FontColor, b.FontColor, b.TextData, b.Text) + x+b.GetWidths()/2, y+b.GetHeights()/2+float, b.FontColor, b.FontColor, b.TextData, b.Text) m.Echo("\n") return b }